Hello,
I am using Service Task with JavaDelegate to call an external web service.
As per my understanding, the task is automatically retried 3 times if any exception is thrown from JavaDelegate. I want to override this logic based on the type of error/exception.
For example:
- If I get 500 Server error back from the web service call, I want to retry once after X mins.
- If I get 4XX HTTP error back from the web service, I want to do zero retries and create incident right away.
How can this be achieved in the JavaDelegate? Is there anyway to set the retry count based on some logic implemented in JavaDelegate?
Regards,
Yogesh