Undo is not triggering when the task is already in redo mode
In our flow, we have a manual task - InitiateWFMManualEntryTask. We have multiple cancellation use case scenarios -
Scenario 1.
Order flow is at InitiateWFMManualEntryTask in received state, Siebel sends a cancellation order and OSM process it. As the compensation strategy for this task is "Do Nothing" when this task is no longer required, so OSM ignores this task and moves to undo other already executed tasks. This works fine.
Scenario 2
Order flow is InitiateWFMManualEntryTask. Operation guy clicks and take the exit status to Appointment_Reschedule. Flow moved to task CreateTroubleTicketTask and then to InitiateWFMWaitForRevisionTask. This creates a trouble ticket in CRM and CRM guy cretes a revision order with new appointment details. OSM process the revision order and with the new appointment order flow again come back to InitiateWFMManualEntryTask in redo mode in received state. Now CRM sends a cancellation order, ideally it should undo the tasks and as the strategy is Do Nothing flow should moved to the prvious task,