Hi All,
I ve a process UserTask1–>ServiceTask1–>ServiceTask2–>UserTask2.
Presently if an exception has occured in ServiceTask2, the process is still there in UserTask1(was found in act_ru_task table)
But my requirement is that, if there is an exception in ServiceTask2, what ever i ve done in serviceTask1, has to be rolled back and also the process instance has to be removed.
[(I ve done this by manually catching the exception in catch block, reverted what i ve done in ServiceTask1 and used runtimeService.delete(taskId) to delete the instance]
Is there any thing i can do to achieve this in workflow design itself?