There may be a scenario in which you want a WS Consumer to attempt a retry even after timing out. For example, you may not want a 404 error to cause the WSC to not execute. You could set your BP to automatically retry a Web Service REST Consumer whenever it times out for that particular timeout code. You can also define how many times to retry. Consider how the Business Process tasks are used below.
The image below shows the Process Environment – Set Value task, which is already part of the overall creation process. Note that the variables exceptionErrorCodes and 504,503 are defined.
Next, the Compare Values task is used, to loop through the retry.
Note the action (ExecuteWSC) when the task fails.
Finally, we use the Process Environment – Set Value task to reset the exception.
Here is the overall area of the Business Process in which these tasks are being used.