Avoid Submission of Variables in External Form

I have a question very similar to this one:

How to stop submition of a previously fetched variable in embedded form - Camunda 7 Topics / Discussion & Questions - Camunda Forum

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.

Happy to hear your comments and ideas.

Thanks in advance.

Hello @bobo,

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.

Hi @hassang,

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.

My submit button looks like this

<h:commandButton id=“submit” value=“Submit Decision”
action=“#{camundaTaskForm.completeTask()}” />

So do you mean I can specify in this command which values to submit?

Thanks for your help.

Hello @bobo,

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.