we have a case in where an API receive a list of task to be redirected to another user, and it will iterate for each item and redirect the task to the user destination.
The problem is we have a preventive measure so that if any of the redirect fails during the loop (connection down, task not found, etc.) it will undo the task that have successfully redirected, back to the original owner of the task.
My Question is, Is it possible to undo the task that was redirected back to the original owner? if yes, how do i achieve this?
Thanks.