We want to model the process such that in case of any outside event, we want the process to go to a particular step. Now the process can be at any step but as soon as the event occurs, it should be back to a particular task. We can not attach an event listener to any particular task.
Let me explain this with a sample business process.
Lets say the task is in Approve task or Pending stage. Now in case of reset event I want to move the process to Review Task state. I have only shown 3 steps in the example but there could a lot more task. All I am looking for a way to listen to an external event ( via API) and reset it to be back at Review Task. How can we achieve this in activiti ?