AssociateArrayByFieldProcessor

Version #1

Description:

This processor can associate elements of an array by it’s value.
It can collect elements in an array, select the las occurrence or merge all occurrences to the output.
The resulting object fields will match the selected keys of the array elements.
Note: When the selected array contains an other array it will be flattened and mapped also.
Note: When the selected key is an array, all of it’s values will be used for association.

Interface:

Basic sample:

<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="AssociateArrayByFieldProcessor" version="1">
  {
    "keyPath": STRING
  }
</processor>

Advanced sample:

<processor id="<FLOW_SCOPED_ARBITRARY_ID_GOES_HERE>" name="AssociateArrayByFieldProcessor" version="1">
  {
    "arrayPath": STRING,
    "keyPath": STRING,
    "mappingType": ENUM<ARRAY | LASTVALUE | MERGEVALUES>
  }
</processor>

Chainable processors: