Is there any way to have outputParameters set the value locally? We’re using reuseable activities in a multi-instance parallel subprocess, and want to use outputParameter mappings for the results. However, since they write the variable in the scope of the process instance, every subprocess tries to write the same variable, which leads to conflicts.
Define the output parameter as Script and create a Map variable, Set the key as the subprocess componentId and the value as the Value which you want to set for the output variable.
Always check for the variable Map before adding the new key-value.
Using a map variable does not actually solve this problem, as it’s still a single variable that will lead to optimistic locking issues if two parallel executions write it at the same time; causing one of them to retry.
The solution we came up with now is to “define” the output variables in the multi-instance scope by using an input mapping on the multi-instance subprocess.
can you show me your solution for multi instance output instead?