Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Inputting Different Data to Each Sub-Process Instance

Procedure
1. Specify an array data field that matches the type of a non-array sub-process/interface input parameter.
2. In a script prior to the sub-process task, populate this array data field with different data for each sub-process instance. For example:
   `appointmentTypeArray.set(0, "X-Ray");`
   `appointmentTypeArray.set(1, "PlasterDept");`
   `appointmentTypeArray.set(2, "Physio");`
3. In the "Map to Sub-Process" property tab, map the array data field to the non-array sub-process/interface parameter. The sub-process invoked from each instance of the task receives the list element corresponding to the instance index of that task (see ’getActivityLoopIndex()’ in Process Instance Attributes and Methods). For example:
   The first instance (activity loop index=0) receives the data "X-Ray" into its "appointmentType" parameter.
   The second instance (activity loop index=1) receives the data "PlasterDept" into its "appointmentType" parameter.
   The third instance (activity loop index=2) receives the data "Physio" into its "appointmentType" parameter.

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.