Disable failure rollback to fire incidents on failing service tasks only via Java API

Say we have a process consisting of a user task (U1) and then three service tasks (S1, S2, S3) and S2 fails; we throw an exception on the execute() function on the Java Delegate for that service task. This happens, blaming U1 for it. I just wish to stop the execution at that failing service task (S2) and create an incident on it with complete disregard to the latest user task (U1) as if it finished successfully with no incidents belonging to it.

Is there a way to disable failure rollback in order to fire incidents on failing service tasks only, via the Java API? The business model I am working with is not transaction-oriented on the user.

Thanks.

Hope this video will help you https://www.youtube.com/watch?v=IR3eUDVpc_w

1 Like