I have a use case where I need to use a “Back” button to go back to previous user task programmatically.
Assume that same user runs a single process and completes user tasks from start to end.
START => UserTask-A => UserTask-B => UserTask-C => END
and how i can jump from userTask-A to UserTask-C etc.
Hi @Reza-1378 ,
obviously there is an api to jump backand forth in the process, but please never ever do this. The only exception would be clean up some errors in a customer environment. Instead, I would propose that you model these possibilities
I crated an example workflow for your two use cases and redirected the process flow using gateways.: camunda_forum.bpmn (7.6 KB)
Building on this example, there is one more step necessary and that is to define conditions. When to go left or go right. This can be done per sequence flow based on expressions or scripts.
I hope this already helps. If you need any more assistance, feel free to ask.
If you really want to do modifications programatically, these two classes should guide you trough:
This functionality is also available via REST endpoints.