Table of Contents

Search

  1. Preface
  2. Part 1: Concepts and Models
  3. Part 2: Custom XConnect Created with a Load Template
  4. Appendix A: Resource Configuration File

Metadata Manager Custom Metadata Integration Guide

Metadata Manager Custom Metadata Integration Guide

Load Template Sample

Load Template Sample

The sample load template shows how you can structure a load template. The sample load template contains mapping rules for classes, class properties, associations, and lineage associations.
You can use the following sample to help you create your own load template:
<loadTemplate name="AS400_1" targetModel="AS400" templateSpecVersion="1.0"> <class ruleName="AS400TableRule" name="AS400Table" condition="TYPE='TABLE'"> <id>PARENT+'~'+ELEMENT</id> <properties> <property name="Name">ELEMENT</property> <property name="LongName">TRIM(LONG_NAME,0,256)</property> </properties> <associations> <parent>PARENT</parent> </associations> <lineageAssociations> <lineageAssociation direction="to"> <linkExpression>LINK_EXPRESSION</linkExpression> <targetElement>TABLE</targetElement> </lineageAssociation> </lineageAssociations> </class> <property ruleName="AS400ElementPropertyRule" element="ELEMENT"> <name>NAME</name> <value>VALUE</value> </property> <association ruleName="AS400ParentRule" name="ParentAssociation"> <from>FROM_ELEMENT</from> <to>TO_ELEMENT</to> </association> <lineageAssociation ruleName="AS400ViewLinkRule"> <linkExpression>LINK_EXPRESSION</linkExpression> <from>FROM_ELEMENT</from> <to>TO_ELEMENT</to> </lineageAssociation> </loadTemplate>

0 COMMENTS

We’d like to hear from you!