Hello,
if I understand the spring-zeebe library correctly, I can fail a job by just throwing an exception in the job worker. In this case, the job will be repeated according to the setting in the process model. If there are no retries left, the activity will be marked as failed.
My question is: Is it possible to tell somehow that no retries should be made and the activity should be immediately marked as failed?
I need this in order to differentiate the situations where a retry might lead to a success from the situations where there is no chance for a retry to succeed and hence no unneeded retries should be made.
Note that I’m not talking about BPMN errors. I don’t want to fail the whole process instance but just one activity.
Thank you for any hints.