Hello guys,
I have been working on a problem for hours now and cannot find a clean way to solve it. Maybe someone here has a good advice for me?
What I want to do is the following:
I have a simple process that looks like this: start -> UserTask1 -> UserTask2 -> UserTask3 -> end
UserTask2 is activiti:async="true" and has a TaskListener assigned that is triggered by the "create" event. The TaskListener does some EJB logic which could generate exceptions that let the TaskListener fail in its execution.
What I want to do is define a stable exception handling for this TaskListener which should eg "revert" the process back to UserTask1.
Unfortunately I do not know how to do it. Right now the execution fails and the process instance is suspended.
Is there a way to take another sequenceFlow in case of an exception in the TaskListener execution?
Why do I need a TaskListener anyway? Well, I want to do the logic at the very moment of the UserTask2 creation and I need the name of UserTask2 for the TaskListener execution.