Using Java logic (not explicitly modeled in BPMN), e.g. catch a database persistence exception from a Service Task and direct it to a User Task (another sequence flow for the failure case).
In this case, my plan is that the Service Task implements ActivityBehavior instead of Java Delegate.
Is this a viable and preferred approach? If not, please suggest alternatives. I am using Activiti 5.16.1.
Thanks in advance.