Who Wins When Two Fire: Boundary Event Combinations
A task can carry several boundary events of every kind that Flower executes. The same holds for a call activity and an embedded sub-process. This page is the complete reference: what happens when more than one boundary event is attached, which combination is not possible, and what the modeler checks. For the short version with an example, see the guide Several Boundary Events at One Task.
Every combination of two boundary events below is part of the tests of Flower BPM, interrupting and non-interrupting, with the same trigger and with different ones. The table at the end of the page is written by that test.
The Events and Their Triggers
| Boundary event | Fires when | Reference |
|---|---|---|
| Timer | it is due (the due date of the work item) | Timer Events |
| Message | the message arrives: a comment @FlowerBPM <name>, Jira Automation, or the REST API of Data Center | Message Events |
| Signal | the signal arrives, on the same ways as a message | Signal Events |
| Error | the work item is resolved in the status of its code | Error Events |
| Escalation | the work item is moved into the status of its name, without resolving it | Escalation Events |
| Condition | the work item is resolved and the condition is true (a condition can also be a chosen Jira status or resolution) | Conditional Events |
When a work item is resolved, Flower checks the error first, then the conditions, then the normal flow. The details are in The Order of Checks When a Work Item Is Resolved.
The Rules
- Each boundary event fires on its own trigger. A timer when it is due. A message or signal when it arrives (a comment
@FlowerBPM <name>, Jira Automation, or the REST API of Data Center). An error when the work item is resolved in the status of its code. An escalation when the work item is moved into the status of its name, without resolving it. A condition when the work item is resolved and the condition is true. - A non-interrupting boundary event starts its path beside the task. The work item stays open. When it is completed, the process also takes the normal path.
- An interrupting boundary event ends the task. Flower closes the work item like a cancelled one, and the process takes only the path of the event. Afterwards, the other boundary events of the task do not wait any more.
- One trigger for several boundary events of the task (the same message or signal name, the same escalation status, or conditions that are all true on the same completion): first all non-interrupting ones fire, then the first interrupting one in the model. The other interrupting ones get nothing: only one interrupting event can win. The result is the same whatever the order of the boundary events in the diagram.
- An error boundary event always interrupts, as BPMN defines it. A non-interrupting one (only possible in models from other tools) works as an interrupting one, and the modeler warns.
- Two error boundary events with the same code: only the first in the model catches the error (rule 4, because errors always interrupt).
- The same status for an escalation and an error (escalation Cancelled, error code Cancelled): moving the work item into the status escalates. Resolving it in that status throws the error, if the task is still open: a non-interrupting escalation leaves it open, an interrupting one has already ended it.
- An error and a condition that the same completion triggers: the error wins, the condition is not evaluated, because the error ends the task first.
- A non-interrupting boundary event fires once per run of its task. A message or signal that comes again finds nothing that waits (a message gets the warning comment that nothing of the process waits for it). Two exceptions: a repeating timer (
R/P1D), and a non-interrupting escalation, which fires again each time the work item is moved into its status.
Two Timers Are Not Possible
One timer boundary event per task. The timer of a boundary event is the due date of the work item, and a work item has one due date. So:
- the first timer boundary event of the task in the model runs; the others never fire;
- when the work item is created, the process instance gets a warning comment that names the timer that runs and the ones that do not;
- the process instance is not stopped: it runs on with the first timer;
- the modeler marks the second timer red (
ONLY_ONE_TIMER_ALLOWED).
For a reminder before a deadline, model one timer and an escalation, or a repeating non-interrupting timer.
What the Modeler Checks
The modeler checks the boundary events of a task while you draw:
| Code | Level | What it finds |
|---|---|---|
ONLY_ONE_TIMER_ALLOWED | Error | More than one timer boundary event at a task: only the first runs |
DUPLICATE_BOUNDARY_TRIGGER | Warning | Two boundary events of a task react to the same message, signal, error code, escalation status, or condition: rule 4 applies |
ERROR_BOUNDARY_NON_INTERRUPTING | Warning | A non-interrupting error boundary event: it interrupts anyway (rule 5) |
All checks are listed in Model Validation Rules.
Every Combination
Task A has boundary event 1 (B1) and boundary event 2 (B2), each with a path of its own. The event of B1 happens first, then the event of B2, then task A is completed if it is still open. Same trigger means that both react to the same message, signal, error code, escalation status, or condition.
How to read the table:
- B1 interrupting, different triggers: B1 ends task A, and B2 never fires (rule 3).
- B1 non-interrupting, different triggers: B2 still fires on its own trigger (rule 2).
- Same trigger: the non-interrupting events fire, then the first interrupting one; a second interrupting one gets nothing (rule 4).
- Error or condition as B1: both fire on the completion of the work item, so task A has ended afterwards, even when the event is non-interrupting. An error always interrupts (rule 5).
- Error and condition on the same completion: only the error fires (rule 8).
The table of all combinations of two boundary events
| Boundary event 1 | Boundary event 2 | What happens (event of 1, then event of 2, then task A is completed if still open) |
|---|---|---|
| timer | timer (same trigger) | timer P1D due: B1 fires, task A ends; timer P1D due: nothing fires |
| timer | timer | timer P1D due: B1 fires, task A ends; timer P3D due: nothing fires |
| timer | timer (non-interrupting, same trigger) | timer P1D due: B1 fires, task A ends; timer P1D due: nothing fires |
| timer | timer (non-interrupting) | timer P1D due: B1 fires, task A ends; timer P3D due: nothing fires |
| timer (non-interrupting) | timer (same trigger) | timer P1D due: B1 fires; timer P1D due: nothing fires; task A completed |
| timer (non-interrupting) | timer | timer P1D due: B1 fires; timer P3D due: nothing fires; task A completed |
| timer (non-interrupting) | timer (non-interrupting, same trigger) | timer P1D due: B1 fires; timer P1D due: nothing fires; task A completed |
| timer (non-interrupting) | timer (non-interrupting) | timer P1D due: B1 fires; timer P3D due: nothing fires; task A completed |
| timer | message | timer P1D due: B1 fires, task A ends; message Go2: nothing fires |
| timer | message (non-interrupting) | timer P1D due: B1 fires, task A ends; message Go2: nothing fires |
| timer (non-interrupting) | message | timer P1D due: B1 fires; message Go2: B2 fires, task A ends |
| timer (non-interrupting) | message (non-interrupting) | timer P1D due: B1 fires; message Go2: B2 fires; task A completed |
| timer | signal | timer P1D due: B1 fires, task A ends; signal Alarm2: nothing fires |
| timer | signal (non-interrupting) | timer P1D due: B1 fires, task A ends; signal Alarm2: nothing fires |
| timer (non-interrupting) | signal | timer P1D due: B1 fires; signal Alarm2: B2 fires, task A ends |
| timer (non-interrupting) | signal (non-interrupting) | timer P1D due: B1 fires; signal Alarm2: B2 fires; task A completed |
| timer | error | timer P1D due: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| timer | error (non-interrupting) | timer P1D due: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| timer (non-interrupting) | error | timer P1D due: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| timer (non-interrupting) | error (non-interrupting) | timer P1D due: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| timer | escalation | timer P1D due: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| timer | escalation (non-interrupting) | timer P1D due: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| timer (non-interrupting) | escalation | timer P1D due: B1 fires; status Escalated2: B2 fires, task A ends |
| timer (non-interrupting) | escalation (non-interrupting) | timer P1D due: B1 fires; status Escalated2: B2 fires; task A completed |
| timer | conditional | timer P1D due: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| timer | conditional (non-interrupting) | timer P1D due: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| timer (non-interrupting) | conditional | timer P1D due: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| timer (non-interrupting) | conditional (non-interrupting) | timer P1D due: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| message | message (same trigger) | message Go: B1 fires, task A ends; message Go: nothing fires |
| message | message | message Go: B1 fires, task A ends; message Go2: nothing fires |
| message | message (non-interrupting, same trigger) | message Go: B2 and B1 fire, task A ends; message Go: nothing fires |
| message | message (non-interrupting) | message Go: B1 fires, task A ends; message Go2: nothing fires |
| message (non-interrupting) | message (same trigger) | message Go: B1 and B2 fire, task A ends; message Go: nothing fires |
| message (non-interrupting) | message | message Go: B1 fires; message Go2: B2 fires, task A ends |
| message (non-interrupting) | message (non-interrupting, same trigger) | message Go: B1 and B2 fire; message Go: nothing fires; task A completed |
| message (non-interrupting) | message (non-interrupting) | message Go: B1 fires; message Go2: B2 fires; task A completed |
| message | signal | message Go: B1 fires, task A ends; signal Alarm2: nothing fires |
| message | signal (non-interrupting) | message Go: B1 fires, task A ends; signal Alarm2: nothing fires |
| message (non-interrupting) | signal | message Go: B1 fires; signal Alarm2: B2 fires, task A ends |
| message (non-interrupting) | signal (non-interrupting) | message Go: B1 fires; signal Alarm2: B2 fires; task A completed |
| message | error | message Go: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| message | error (non-interrupting) | message Go: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| message (non-interrupting) | error | message Go: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| message (non-interrupting) | error (non-interrupting) | message Go: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| message | escalation | message Go: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| message | escalation (non-interrupting) | message Go: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| message (non-interrupting) | escalation | message Go: B1 fires; status Escalated2: B2 fires, task A ends |
| message (non-interrupting) | escalation (non-interrupting) | message Go: B1 fires; status Escalated2: B2 fires; task A completed |
| message | conditional | message Go: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| message | conditional (non-interrupting) | message Go: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| message (non-interrupting) | conditional | message Go: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| message (non-interrupting) | conditional (non-interrupting) | message Go: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| signal | signal (same trigger) | signal Alarm: B1 fires, task A ends; signal Alarm: nothing fires |
| signal | signal | signal Alarm: B1 fires, task A ends; signal Alarm2: nothing fires |
| signal | signal (non-interrupting, same trigger) | signal Alarm: B2 and B1 fire, task A ends; signal Alarm: nothing fires |
| signal | signal (non-interrupting) | signal Alarm: B1 fires, task A ends; signal Alarm2: nothing fires |
| signal (non-interrupting) | signal (same trigger) | signal Alarm: B1 and B2 fire, task A ends; signal Alarm: nothing fires |
| signal (non-interrupting) | signal | signal Alarm: B1 fires; signal Alarm2: B2 fires, task A ends |
| signal (non-interrupting) | signal (non-interrupting, same trigger) | signal Alarm: B1 and B2 fire; signal Alarm: nothing fires; task A completed |
| signal (non-interrupting) | signal (non-interrupting) | signal Alarm: B1 fires; signal Alarm2: B2 fires; task A completed |
| signal | error | signal Alarm: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| signal | error (non-interrupting) | signal Alarm: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| signal (non-interrupting) | error | signal Alarm: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| signal (non-interrupting) | error (non-interrupting) | signal Alarm: B1 fires; resolved in status Cancelled2: B2 fires, task A ends |
| signal | escalation | signal Alarm: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| signal | escalation (non-interrupting) | signal Alarm: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| signal (non-interrupting) | escalation | signal Alarm: B1 fires; status Escalated2: B2 fires, task A ends |
| signal (non-interrupting) | escalation (non-interrupting) | signal Alarm: B1 fires; status Escalated2: B2 fires; task A completed |
| signal | conditional | signal Alarm: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| signal | conditional (non-interrupting) | signal Alarm: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| signal (non-interrupting) | conditional | signal Alarm: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| signal (non-interrupting) | conditional (non-interrupting) | signal Alarm: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| error | error (same trigger) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| error | error | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| error | error (non-interrupting, same trigger) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| error | error (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| error (non-interrupting) | error (same trigger) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| error (non-interrupting) | error | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| error (non-interrupting) | error (non-interrupting, same trigger) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| error (non-interrupting) | error (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; resolved in status Cancelled2: nothing (task A has ended) |
| error | escalation | resolved in status Cancelled: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| error | escalation (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| error (non-interrupting) | escalation | resolved in status Cancelled: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| error (non-interrupting) | escalation (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| error | conditional | resolved in status Cancelled: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| error | conditional (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| error (non-interrupting) | conditional | resolved in status Cancelled: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| error (non-interrupting) | conditional (non-interrupting) | resolved in status Cancelled: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| escalation | escalation (same trigger) | status Escalated: B1 fires, task A ends; status Escalated: nothing (task A has ended) |
| escalation | escalation | status Escalated: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| escalation | escalation (non-interrupting, same trigger) | status Escalated: B2 and B1 fire, task A ends; status Escalated: nothing (task A has ended) |
| escalation | escalation (non-interrupting) | status Escalated: B1 fires, task A ends; status Escalated2: nothing (task A has ended) |
| escalation (non-interrupting) | escalation (same trigger) | status Escalated: B1 and B2 fire, task A ends; status Escalated: nothing (task A has ended) |
| escalation (non-interrupting) | escalation | status Escalated: B1 fires; status Escalated2: B2 fires, task A ends |
| escalation (non-interrupting) | escalation (non-interrupting, same trigger) | status Escalated: B1 and B2 fire; status Escalated: nothing fires; task A completed |
| escalation (non-interrupting) | escalation (non-interrupting) | status Escalated: B1 fires; status Escalated2: B2 fires; task A completed |
| escalation | conditional | status Escalated: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| escalation | conditional (non-interrupting) | status Escalated: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| escalation (non-interrupting) | conditional | status Escalated: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| escalation (non-interrupting) | conditional (non-interrupting) | status Escalated: B1 fires; resolved as Rejected2: B2 fires, task A ends |
| conditional | conditional (same trigger) | resolved as Rejected: B1 fires, task A ends; resolved as Rejected: nothing (task A has ended) |
| conditional | conditional | resolved as Rejected: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| conditional | conditional (non-interrupting, same trigger) | resolved as Rejected: B2 and B1 fire, task A ends; resolved as Rejected: nothing (task A has ended) |
| conditional | conditional (non-interrupting) | resolved as Rejected: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| conditional (non-interrupting) | conditional (same trigger) | resolved as Rejected: B1 and B2 fire, task A ends; resolved as Rejected: nothing (task A has ended) |
| conditional (non-interrupting) | conditional | resolved as Rejected: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| conditional (non-interrupting) | conditional (non-interrupting, same trigger) | resolved as Rejected: B1 and B2 fire, task A ends; resolved as Rejected: nothing (task A has ended) |
| conditional (non-interrupting) | conditional (non-interrupting) | resolved as Rejected: B1 fires, task A ends; resolved as Rejected2: nothing (task A has ended) |
| escalation (status Cancelled) | error (code Cancelled) | status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| escalation (non-interrupting, status Cancelled) | error (code Cancelled) | status Cancelled: B1 fires; resolved in status Cancelled: B2 fires, task A ends |
| escalation (status Cancelled) | error (non-interrupting, code Cancelled) | status Cancelled: B1 fires, task A ends; resolved in status Cancelled: nothing (task A has ended) |
| escalation (non-interrupting, status Cancelled) | error (non-interrupting, code Cancelled) | status Cancelled: B1 fires; resolved in status Cancelled: B2 fires, task A ends |
| error (code Cancelled) | conditional (Rejected, true on the same completion) | resolved as Rejected in status Cancelled: B1 fires, task A ends |
| error (code Cancelled) | conditional (non-interrupting, Rejected, true on the same completion) | resolved as Rejected in status Cancelled: B1 fires, task A ends |
| error (non-interrupting, code Cancelled) | conditional (Rejected, true on the same completion) | resolved as Rejected in status Cancelled: B1 fires, task A ends |
| error (non-interrupting, code Cancelled) | conditional (non-interrupting, Rejected, true on the same completion) | resolved as Rejected in status Cancelled: B1 fires, task A ends |
What’s Next?
- Several Boundary Events at One Task: the guide with the most important rules and an example
- How a Work Item Continues the Process: the order of checks when a work item is resolved
- BPMN Events: all events and their positions
- Set Due Dates with Timers
- End a Task with an Error Status
- Escalate a Task with a Jira Status
- Branch with Conditional Boundary Events