A Possible Target Extension XML
The following target extension XML prepares the data to match the target system's data naming. The transformation expressions can be used to change Data Hub data names to target data names.
Some things you should know about this file:
- The extension listed as a dependency must load before the target extension loads
- In the targetSystem block:
- The name is the name of the target system
- The type of targetSystem is HybrisCore, which is SAP Commerce Cloud
- Within the attribute blocks, there is a transformationExpression. The field contains the canonical name for the attribute. The name field contains the target name for the field.
<extension xmlns="http://www.hybris.com/schema/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hybris.com/schema/ datahub-metadata-schema-1.0.0.xsd" name="base-target-datahub-extension">
<dependencies>
<dependency>
<extension>base-canonical-datahub-extension</extension>
</dependency>
</dependencies>
<targetSystems>
<targetSystem>
<name>FileAdapterTargetSystem</name>
<type>HybrisCore</type>
<exportURL/>
<userName/>
<password/>
<exportCodes/>
<!-- Target items and attributes -->
<targetItems>
<item>
<type>targetProduct</type>
<updatable>true</updatable>
<canonicalItemSource>CanonicalProduct</canonicalItemSource>
<status>ACTIVE</status>
<attributes>
<attribute>
<name>sourceID</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>identifier</transformationExpression>
</attribute>
<attribute>
<name>prodName</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>name</transformationExpression>
</attribute>
<attribute>
<name>description</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>description</transformationExpression>
</attribute>
<attribute>
<name>coding</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>barCode</transformationExpression>
</attribute>
<attribute>
<name>manuName</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>manName</transformationExpression>
</attribute>
<attribute>
<name>manuAid</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>manAid</transformationExpression>
</attribute>
<attribute>
<name>unit</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>unit</transformationExpression>
</attribute>
<attribute>
<name>style</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>style</transformationExpression>
</attribute>
<attribute>
<name>size</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>size</transformationExpression>
</attribute>
<attribute>
<name>sku</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>sku</transformationExpression>
</attribute>
<attribute>
<name>category</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>category</transformationExpression>
</attribute>
<attribute>
<name>styleName</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>styleName</transformationExpression>
</attribute>
<attribute>
<name>styleDescription</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>styleDescription</transformationExpression>
</attribute>
</attributes>
</item>
</targetItems>
</targetSystem>
</targetSystems>
</extension>