O'Reilly logo

Essential Business Process Modeling by Michael Havey

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

Cancellation Patterns

Synopsis

Every process designer needs a clever strategy to cancel a process at any point during its execution. A 25-step insurance claim process, for instance, must terminate as soon as the subscriber calls to rescind the claim. The hard way to solve this problem is to add cancellation checks at each of the 25 steps; more desirable is a single check or action that covers the execution of the entire process. There are two types of cancellation patterns: Cancel Activity and Cancel Case.

Cancel Activity

The intent of the Cancel Activity pattern is to stop the execution of a particular process activity on a cancellation trigger. This pattern is also known as Kill Activity.

The Cancel Activity pattern is useful to abort a long-running or suspended activity (e.g., a manual approval that has been ignored by its owner), or to reroute a process to an escalation path. The former case is shown in Figure 4-26.

The Cancel Activity pattern
Figure 4-26. The Cancel Activity pattern

Between Step X and Step Y sits a long-running activity called Long step. To enable the cancellation of Long step during its execution, a deferred choice is established between Long step and a Cancellation event. As soon as deferred choice completes, Step Y is started, and the subsequent effects of the other activity are ignored.

Figure 4-27 shows a BPMN implementation of this pattern.

Figure 4-27. A BPMN implementation of the Cancel ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required