on 02-09-2016 3:42 PM - last edited on 02-04-2024 2:50 AM by postmig_api_4
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>
It depends on how the order is modeled/modified in your hybris installation. But in the end you would like to create one for each field of your order. each is then mapped to one column of impex.
Follow the link on a reference on how the impex looks like. https://wiki.hybris.com/display/release5/How+To+Import+Products+and+Orders+-+Tutorial and see: https://wiki.hybris.com/display/release5/Domain+Modeling+in+the+Data+Hub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.