In my workflow, at this stage, I need the code to go do something. It will take a long time and it is not synchronized so I should not use a service task for sure. But after the code is done, my code need to notify workflow that this is done and you need to continue.
So I ended up use a user task and have my code through REST API just claim and finish the task.
Am I doing the right thing? Is there a lot of things missing in the REST API? What is the reason we have a Java receive task and in what situation I should use it instead of user task?
I think receive task is the right solution. In the case when interface is not exposed through REST API, you could extend activiti rest interface (and contribute to the project 🙂 ).
Thank you for reply. I would love to extend the REST interface and contribute back to the project. The name of the receive task sounds right to me. But I am curious on what are the differences. Can you give an example when have the program claim and finish a user task may cause problem?