Data Coherence for completing user task and updating external DB


Hello we use camunda as REST service in our app.
For completing user task in our app we use next code:

completeUserTask(String taskId, SpecificTaskData userData) {

But this operation is not transactional.

I see two avaliable solution:

But i don’t like the idea creating service task or message receiver for each user tasks.
I think it makes a diagram unclear (more irrational).
What do you think about this problem? Thank you.


hi @neki,

you can introduce a new data service on the server side which combines the taskService.complete() and saves the user data into your business database. Here you can use the Spring or JEE transaction to reach your goal.

Hope this helps, Ingo