Parallel multi instance call Activity result

Is it possible to gather results of parallel mutli instance call activity ?
I have multi-instance call activity which I start parallel. Then I should add the results of execution to the json variable of my parent process accordingly to the values. Is it possible? And how?

{
[clients:
{“name”,“NAME1”,“result”:“RESULT1”},
{“name”:“NAME2”,“result”,“RESULT2”}
]
}

You could use and execution listener that runs at the end of each instance and adds a local variable returned from the child process to the object in the global scope of the parent process.

1 Like

Thank you so much

But if the activities are executed in parallel: Won’t you possibly get a race condition? In the worst case (rather impossible in practice), after all activities have completed, the main process will have just one result.