Basically I need to solve the same problem in an external task form. More precisely I have a process that after an inlcusive gateway splits up into multiple user tasks, in which different users should provide their comment to given data inside an external task form.
To help users which perform their task later than others, they should be able to see the result of the submission of other users, if those have done so earlier. However, their submission should not alter the response of different users.
Whenever a form is submitted, retrieve the previously saved variables and update only the intended ones. This ensures that only the variables you want to change are modified.
thanks for the swift reply. This is exactly waht I am trying to achieve.
Lets keep it simple for demonstration purposes. So in my external form, I retrieve the values of the process variables commentA and commentB. While user A is only able to edit commentA, when submitting the form also the value retrieved for commentB is submitted again.
Rather than directly invoking the completeTask() method from Camunda CDI, consider using a custom CDI controller bean with a dedicated method for submission. This method will handle task completion while updating only the necessary variables.