Using Boundary Events in Camunda: A Practical Modeling Guide

Diagram editor showing an order flow where “Process Order” has a lower attached circle labeled “Cancel Order” leading to “Handle Cancellation.”

Unexpected interruptions happen in many business processes. A task may be running, but an event can suddenly change the flow. That is why I use boundary events with Camunda. They help me model what happens when a message, timer, error, or other event interrupts ongoing work. In this article, I show how these attached BPMN events work and how to model them step by step.

What is BPMN 2.0?

BPMN 2.0 stands for Business Process Model and Notation, version 2.0. It’s a standard. I use it to model business processes clearly and consistently. Even better, most process automation tools support BPMN, including Camunda.

Its diagrams show the flow of tasks, events, and decisions. As a result, everyone—from analysts to developers—can understand the process logic at a glance. That makes it incredibly useful. Read more about Camunda and Process Management in BPMN Core Elements with Camunda: My Hands-On Guide and Engaging and Practical BPMN Example with Camunda (open in new tabs).

Events in BPMN 2.0

Events are essential in BPMN. They signal that something happens during a process. I distinguish between start events, intermediate events, and end events. Among intermediate events, there’s a special type: the boundary event.

Boundary events attach directly to an activity. They interrupt or influence that activity. For example, I might expect a cancellation, a timeout, or an error—right while a task is being processed.

These events don’t pause the whole process. Instead, they only impact the specific task they’re attached to.

Now, let’s take a closer look at how to model these attached events in practice.

Modeling Attached Events in BPMN (Step-by-Step with Camunda)

Let’s say I want to model a task and an event interrupts this task. Thus, I’ll call this task “Process Order”, and the interrupting event is “Cancel Order”. Here’s how I do it in Camunda:

Step 1: Open Camunda Modeler

First, I open the Camunda Modeler. Then, I create a new BPMN diagram and I connect all elements with sequence flows.

Step 2: Add a Start Event

I drag a Start Event onto the canvas. I rename it to “Order Received”.

Camunda Modeler with the start event icon highlighted in the element palette.
Selecting a start event in Camunda Modeler.

Then, I place the event on the canvas and name it “Order Received”.

The start event defines the point at which my order process begins.

Camunda BPMN diagram with a start event labeled Order Received.
Start event named “Order Received” on the BPMN canvas.

Step 3: Add the Main Task

Next, I add a Service Task and label it “Process Order”. This is the activity the process normally executes.

Camunda Modeler with the task element highlighted in the element palette.
Selecting a task in Camunda Modeler.

I place the task after “Order Received”, connect both elements, and name the task “Process Order”.

BPMN diagram with Order Received connected to a task named Process Order.
Adding the “Process Order” task to the BPMN process.

Step 4: Attach the Interrupting Event

Now comes the important part. Click the “Process Order” task and select Append Intermediate Event → Boundary Event, with the detailed search, which you can access via the three dots.

This creates a boundary intermediate event, which I place directly on the edge of the task. I set its type to Message and label it “Cancel Order”. This is how I model attached events in BPMN correctly.

Camunda Modeler element search showing boundary event options.
Selecting a boundary event in Camunda Modeler.

Next, I place the event directly on the edge of the “Process Order” task. I configure it as a message event and label it “Cancel Order”.

BPMN diagram showing a Cancel Order boundary event attached to the Process Order task.
Message boundary event attached to the “Process Order” task.

Step 5: Define the Alternative Flow

From the boundary event, I draw a sequence flow to another task. I name it “Handle Cancellation”. This task will run if the order gets cancelled mid-process.

BPMN diagram with a boundary event leading from Process Order to a Handle Cancellation task.
Alternative flow from “Cancel Order” to “Handle Cancellation”.

Step 6: Define the Normal Flow

Meanwhile, the original task continues to another activity: “Ship Order”. This happens if no cancellation occurs.

BPMN diagram showing Process Order leading to Ship Order while the cancellation path leads to Handle Cancellation.
Normal process flow from “Process Order” to “Ship Order”.

Step 7: Add End Events

Finally, I place two End Events: one after “Ship Order” and one after “Handle Cancellation”.

Camunda Modeler with the end event element highlighted in the palette.
Selecting an end event in Camunda Modeler.

Then, I place one end event after “Ship Order” and another after “Handle Cancellation”. I name them “Order shipped” and “Order cancelled”.

Complete BPMN order process with Order Received, Process Order, Cancel Order boundary event, Ship Order, Handle Cancellation, Order shipped, and Order cancelled.
Completed BPMN process with normal and cancellation outcomes.

How It Works in Execution

Let’s walk through what happens at runtime:

  • The process starts with “Order Received”.
  • The token flows into “Process Order”.
  • If “Cancel Order” arrives during processing, the system cancels the task and routes the flow to “Handle Cancellation”.
  • If no cancellation happens, the task finishes normally, and the order is shipped.
  • If the event occurs after the task is already done, it has no effect. The event is simply ignored.

That’s the power of attached events in BPMN. They allow me to react to sudden changes without pausing or restarting the entire process.

Final Thoughts

To sum up, I use attached boundary events to model interruptions within a task. They sit right on the edge of an activity and redirect the process flow when something unexpected happens. Thanks to BPMN 2.0 and Camunda, it’s straightforward to set up.

Now you know how to model attached events in BPMN step by step. Try it yourself in Camunda and see how much clarity it brings to your process models.

What’s Next?

Now that you have expanded your Camunda knowledge, it is time to strengthen your understanding of BPMN. Knowing the individual modeling elements and their purpose helps you create clear, consistent, and meaningful process diagrams.

Continue with How to Use BPMN Elements in Camunda to explore events, activities, gateways, and sequence flows. You will learn how these fundamental building blocks work together to represent business processes.

Mastering BPMN core elements provides the foundation for creating more sophisticated process models in Camunda.

Explore More Requirements Engineering Tools

Effective Requirements Engineering requires more than methodological knowledge. The right tools help you visualize processes, document requirements, manage changes, and improve collaboration. Therefore, explore the main article on Requirements Engineering Tools to discover how draw.io, Confluence, Jira, and Camunda support your daily work. You will find practical tutorials and step-by-step guides that help you develop your technical skills. Understanding how different Requirements Engineering tools complement each other helps you establish more efficient and structured workflows.


Credits: The diagrams were created with Camunda.

Scroll to Top
WordPress Cookie Plugin by Real Cookie Banner