cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between GroupingHandler and CompostionHandler

Former Member
0 Kudos

Hi All, I am reading through DataHub documentation in the hybris wiki and didnot get much about when exactly I need to use Grouping handler and when to go for CompositionHandler. Can anyone please make me clear on it.

Accepted Solutions (1)

Accepted Solutions (1)

raghavendra_desu
Contributor
0 Kudos

Hi ,

The Data hub will be used to get the data from one db and import into Hybris. This will be handled in a 2 step process like getting the source data and transform into canonical items and the other step is converting the canonical items to target data(hybris items).

During this process, there can be a source item which will be mapped multiple canonical items and a canonical item which will be mapped to multiple target items. Grouping handlers will be used to massage the grouped data into the canonical format. where as publication handlers will be used to exclude (filter out) a particular item, transform it, or convert it into a list of other (possibly modified) canonical items. You can use Publication Grouping Handlers to create complex transformations from canonical format to target format.

Please find the links below along with examples, which can have better explanation.

https://wiki.hybris.com/display/release5/Composition+Handlers+-+5.7

https://wiki.hybris.com/display/release5/Using+a+Publication+Grouping+Handler+to+Transform+Canonical...

Regards,

Raghavendra.

Answers (0)