I would like to collate the various “Approved” Boolean responses on a form served as multiple parallel instances of a sub-process.
I suspect I would have to initialize a JSON process variable, vJsonResponses, before the MI process is activated and then add a property to it for each instance of the MI. However I cannot get the variable to update.
Why is the Json variable not updating? Can this be done with EL / JS?
In that thread, there is code example of running Multi-Instance on a Business Rule Task and for the output of each instance, the result is added to a array/collection. This should cover your use case to show the collated boolean responses in your Collate user task.
I believe your problem is that in your End Listener on the Approve User Task, you are not updating the process variable. Look at my code examples from the DMN pattern.