Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# 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.

   At runtime, the array field is populated with the return data from each sub-process instance. The list element index corresponds to the activity loop index from which the sub-process instance was invoked.

   For example, if the sub-process returned an integer parameter "ReturnParam" with value "X-OK" when passed "X-Ray", "PL-OK" when passed "PlasterDept" and "PH-OK" when passed "Physio", and you mapped this to an array data field "ReturnArrayField", then:

   ReturnArrayField.get(0) is "X-OK"
   ReturnArrayField.get(1) is "PL-OK"
   ReturnArrayField.get(2) is "PH-OK"

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).

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.