Automate - Running mapper for multiple input files

Hi

If we had multiple data files when using workflow we would create a branch which run the data through the mapper and then after do a restore items. I’m strunggling to figure out how to do this with automate as once you do a split it then repeats everything after that each item.

This is what I have at the moment

Add a Join node after the Paginated Content step. This will close the loop and continue the flow with a single msg object.

Within the Join node, you can collect the returned content-set IDs and aggregate them into an array. That array (stored in msg.contentSetId) can then be passed to either the Paginated Job node or the Paginated Output node in order to produce a single combined output file or stream.

An example of this configuration is included with the software. To review it, in the Flow Editor, navigate to:

Menu (upper right corner) → Import → Examples → connect package → create paginated content → commingling → 1 - Batch based on trigger file

This sample demonstrates how the Join node should be configured using the “reduce sequence” and may actually provide the full flow for your use case :wink:

Erik

Brilliant thanks that looks perfect

1 Like