I want to be able to present an embedded form to the user, and provide a way of calling another activity that calculates a value, and returns back to the user task and displays the updated value on the associated form, without having to complete the task and reselect the task in the task list.
So for example, take my test process below:
Here, the UT
activity has a form that displays a variable called count
. When the form is completed (and therefore the task), the script task ST
increments the count
variable and then returns back to the UT
activity and the updated counter variable is displayed. But this relies on completing the task.
I have looked through the embedded form documentation (Embedded Forms Reference | docs.camunda.org) but nothing obvious springs out that shows how this could be done.
I thought maybe using a conditional boundary event on the user task to kick off the script task if the user changes data on the form (and we update the process variable), but not sure if this would work or be a good pattern to use?
Are there any examples or patterns out there for this type of use case?