AnsweredAssumed Answered

Boundary event after Java Service Task retry failure?

Question asked by eputtone on Oct 28, 2013
Latest reply on Mar 8, 2019 by mystarrocks

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?

- Esa