What is the best approach to pass information between two user tasks in a multi instance sub process and then evaluate the information in service tasks ?
Knowing that the number of iterations can vary.
We have tried different approaches listed below:
1ª with call activity
With this approach the problem I am having is that the name of the output variables has to be defined on the bpmn but the number of iteration can vary so I can’t define all the different output variables.
2ª with sub process
When I complete the UT1 with input variables to add information to the UT2 the variables are added to the main process instance so they are overwritten.
In your case I would create a list of results in the scope of parent process. Each iteration could add the output to the specific index (or in the map with specific id) to the list. or just create a variable with the specific name
e.g.