cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically route process instance

nicksmith
Champ in-the-making
Champ in-the-making
Let's say that I have this process definition with these tasks:

Start > Step 1 > Step 2 > Step 3 > Step 4 > End

Now let's say I have an instance of that process that is currently waiting for "Step 3" to be completed.

Are there any APIs currently available that would let an application route the process instance back to Step 1?

The only way that I can see to do this is to:

1. Delete the task for "Step 3" using TaskService.deleteTask()
2. Manually insert a new execution into the ACT_RU_EXECUTION table so that this process instance is now starting back at "Step 1"

Does anyone have any suggestions on whether I'm on the right track? Or is there a cleaner way to do this? 
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The only 'right' way is to have a sequence flow from step 3 to step 1. All the other stuff is kinda always hacking :s