Hi,
Can someone plz reply ASAP if there is a way to persist variables set using execution.setVariables in case service task throws an exception.
The use case is 4 service tasks in a row. 4th task throws an exception. Process rolls back to last user task (deleting success response from 1st 3 service tasks). Now when user re-submits, first 3 service tasks are again called. Problem is we can call one of the first 3 services only once after success is returned, after that it will send us error response and if we receive error we throw exceptions from service task. Now user is stuck because we are getting error response from that service and user cannot move forward.
But if somehow i can persist the response in variables, i can use that to re run the logic and not hit the api and user can just move forward.
Thank you,
Arpit