There is a scheduler API that I have created, inside that there is a for each which is taking an array as [1, 2, 3, 4, 5, 6]
Based on the value from the array I am using a choice router.
Now if any error occurs when payload == 2
, how should I control the error handling such that after catching the error the control should go to payload == 3
No batching is used in this API.
Use a a Try scope with error handling inside the choice branch for payload == 2 to handle the error with on-continue to capture the error.
Note that there is nothing ache specific in your question or in this solution.