Dawid_Zajdel
6 years agoNew Contributor
Problem with grouping objects
I have tree xml files. Each of the files contains the same section “Workers” and another section which doesn’t have to be in another file.
I would like to group it after common section and get situ...
- 6 years ago
They are
null
because the second object in the group hasnull
values for those properties, so it is overwriting the values from the first object in the group.I would suggest moving Mapper2 in your example to the end of the pipeline and just work with the objects you already have. You can then use the
merge()
method to combine the objects in the group together. The merge will preserve the nested structure, so that the values of one object in the group don’t clobber the values in the other objects.Here’s an updated version of your example:
GroupingObjects_2019_10_22.slp (28.2 KB)