Resources that I'm using to test the scenario described below:
Data Hub 5.2
pcm-apparel-5.2.0.0.jar
csv-web-service-5.2.0.0.jar
Scenario:
My Raw Item "RawProduct" has two attributes: category and brand
My Canonical Item "CanonicalProduct" has an attribute: category
My Target Item "ApparelProduct" has an attribute: superCategories
I want to gather the values of "category" and "brand" attributes from RawProduct into the "category" attribute of my CanonicalProduct, later the attribute "superCategories" from ApparelProduct will be populated using the "category" attribute of my CanonicalProduct.
What's the best way to do it?
I thought about some solution using Grouping handlers (but maybe it's too much for such an easy task):
doc: https://wiki.hybris.com/display/release5/Data+Hub+Grouping+-+Technical+Guide
Maybe some SpEL expression to "combine" both attributes into a single attribute from Canonical item to Target item using "transformationExpression", but is it possible to do it with collection attributes?
Maybe I'm skipping some easier solution such as any specific attribute setup via XML.