I have a Process flow that uses the parallel gateway to run two activities in parallel. In each activity I have a ExecutionListner which adds the name of that Activity to a Global variable (list). The issue I am seeing is that when the flow joins back into a Parallel join and move to the next activity the Global variable has only the last Activity that was completed in the list. The activity that is complete first through uses the same Execution listener and add the Activitiy name of the list. It is getting lost.
I tried putting asyc continuation after each activity and asyc continuation before the join activity, but it is not helping. I get the variable using delegateExecution.getVariable(…)
How can is make this persists the changes done on the parallel flow?