Greetings!
I'm new to hybris. I've completed a tutorial regarding data modeling through a data hub extension:
I want to import orders from other system into hybris, but one thing isn't clear to me. The target data has to be something that hybris understand. I can't figure out what the xml for hybris order should look like. For example below is the XML for categories.
Any help will be much appreciated!
Regards, Plamen
<targetItems>
<item>
<type>ApparelCategory</type>
<exportCode>Category</exportCode>
<description>Hybris Platform representation of an apparel product category</description>
<updatable>true</updatable>
<canonicalItemSource>CanonicalApparelCategory</canonicalItemSource>
<status>ACTIVE</status>
<attributes>
<attribute>
<name>code</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>integrationKey</transformationExpression>
<exportCode>code[unique=true]</exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
<attribute>
<name>name</name>
<localizable>true</localizable>
<collection>false</collection>
<transformationExpression>name</transformationExpression>
<exportCode>name</exportCode>
<mandatoryInHeader>false</mandatoryInHeader>
</attribute>
<attribute>
<name>superCategories</name>
<localizable>false</localizable>
<collection>true</collection>
<transformationExpression>parentCategories</transformationExpression>
<exportCode>superCategories(code,$catalogVersion)</exportCode>
<mandatoryInHeader>false</mandatoryInHeader>
</attribute>
<attribute>
<name>catalogVersion</name>
<localizable>false</localizable>
<collection>false</collection>
<transformationExpression>""</transformationExpression>
<exportCode>$catalogVersion</exportCode>
<mandatoryInHeader>true</mandatoryInHeader>
</attribute>
</attributes>
</item>
</targetItems>