Retry configuration is not maintained

Hi @filiphr , Thanks for the reply.

I am sharing the xml below. The extension that I am telling about is to add the flowable:failedJobRetryTimeCycle that is in the xml.

Also attaching the Java Delegate. So the main objective is to throw a runtime exception. And when the retry count reaches a threshold to throw a BPMNError. I am expecting the boundary error event will catch this event and then process will flow to the LogErrorTask which is also not happening. Thanks in advance.

public class GetClaimablePoliciesTask implements JavaDelegate {
public static int retry = 0;
private static final Logger LOG = LoggerFactory.getLogger(GetClaimablePoliciesTask.class);
@Override
public void execute(DelegateExecution delegateExecution) {
    retry++;
    LOG.info("Retry count:- " + retry);
    if (retry != 4) {
        throw new RetryableException();
    } else {
        throw new BpmnError("mail");
    }
}

}

XML

BPMN XML