Hello,
I have a process that contains Java Service Tasks with activity:async=true. I have successfully implemented an own Command / CommandFactory, which replaces the default retrying behavior (DecrementJobRetriesCmd / DefaultFailedJobCommandFactory) for async continuations.
When the retries left count reaches zero, Activiti stops the job. I could probably trigger it active again, but it would only continue retrying the same service task. Instead, I would like to exit the service task through e.g. an error boundary event.
Is there a way detect (in JavaDelegate perhaps) the last retry and raise BpmnError? Or some other way to continue automatically before Activiti stops the job because of too much retrying?
Thanks!
- Esa