Dear Flowable Experts,
Is there a way to avoid unnecessary retries when a custom activity behavior or delegate throws an exception which will not be resolved by a retry?
By default, retries are set to 2 in our environment which we would like to preserve for e.g. optimistic locking exceptions etc. However, some activities would throw exceptions which will persist even if an activity is retried. In this case, it would be reasonable to avoid the retries.
Is there a clean way to achieve this?
To test our options, we have tried JobEntity#setRetries
to 0 and JobService#moveJobToDeadLetterJob
for the current job in an activity behavior as such. Unfortunately, this hasn’t worked out. Probably, we’ve missed something.
Thank you very much in advance!
Best regards,
Vasil