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?