You have a DB locking issues, where you are trying to have two transactions write to the same variable at the same time. This is a Anti-pattern.
A few possible options:
- Have you looked at using the Comments API for user task?
- Have each user task generate a different variable, and once all tasks are completed you merge the variables together.
- take a look at this for other possible scenarios and understanding of the anti-pattern you are following: Pattern Review: DMN Looping for Array Input
- take a look at this: https://github.com/StephenOTT/camunda-concurrency-helpers-process-engine-plugin as a another variation of solution to collect your data in parallel and merge it on save.