I have complex workflow processing scenario in my application. Once the application gets a provide request, the Camunda workflow starts processing the request - it goes through various steps like booking an appointment in an external system, allocating a route in another system and so on. Now if the customer cancels or amends the order, my original provide workflow instance needs to understand this and take corrective action - in case of a cancel, it needs to undo previously completed tasks (cancelling the appointment, de-allocating the route etc). I want to understand how the same can be accomplished in Camunda?
Hi @Shyam,
you can use Compensation events of BPMN 2.0 to fulfill your requirements.
Have a look at the docs for further details: https://docs.camunda.org/manual/7.12/reference/bpmn20/events/cancel-and-compensation-events/#compensation-events
Hope that helps, Ingo