Returning Different Data From Each Sub-Process Instance

Procedure

  1. Specify an array data field that matches the type of a non-array sub-process/interface output parameter.
  2. In the "Map From Sub-Process" property tab, map the output parameter to that array field.

    Sub-process instances can complete in any order, so output must be appended to the target list. For single to multi-instance output mappings, the target list must be configured as Append to Target List.

    In other words, the mapped output values are appended in the order of sub-process completion, and therefore the location of data in output arrays may not match the location of input data for the corresponding sub-process instance.

Result

The way that this data is passed behaves in the same way for multi-instance statically defined sub-process tasks (tasks that reference an actual sub-process at design time).