Cancel requests wherever we need to

Hi,

In Camunda 8, I have a BPMN model that addresses my business needs. I want to add a cancellation feature at every step of the flow. I have searched for information on how to implement this feature and learned that I need to create a parallel operation alongside the other steps. Whenever I wanted to initiate a cancellation, I would call that parallel operation.

I would like to know if this approach is considered standard practice.

Thank you for your guidance!

Hi @Sina_Mehrad

If I understood correctly, cancellation can be accomplished simply by using an event sub-process with an interrupting message event so a cancellation request can be initiated by publishing a cancellation message.

https://docs.camunda.io/docs/components/best-practices/modeling/modeling-beyond-the-happy-path/#dealing-with-canceling-the-process

1 Like

Thank you for your response.
If I understand correctly, I should place my cancellation process in a sub-process. Then, whenever I need to cancel, I can trigger that event without requiring a parallel operation.

1 Like

Exactly, your cancelation logic exists in the event sub-process which can be triggered once at any time while the main process is running.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.