The customer cancels on day 3: react at any time with event sub-processes
Some things can happen at any point of a process. The customer cancels the order on day 3. The request is withdrawn. The price list changes while offers are still open. You do not know which step the process will be in, so a boundary event on one task is not enough.
An event sub-process solves this. It sits inside the process, with a dotted border, but has no sequence flow to the rest of the diagram. Flower BPM watches its start event while the process runs. When the event happens, the event sub-process starts, at whatever step the process is.
Reference: Event Sub-Processes in Flower describes every start event, the rules and the limits in detail.
Six events that start it
An event sub-process starts with one of these start events:
| Start event | Starts when | Example |
|---|---|---|
| Conditional | Its condition on the process instance becomes true. Flower checks it whenever the process instance runs or changes | withdrawn in the labels: the request can be withdrawn at any time |
| Timer | Its due day comes, counted from the start of the process (the timer job of that day) | A reminder after three days |
| Error | An error end event of the process is reached, or a work item of the process is resolved in the Jira status of its error | Clean up after a failed step |
| Message | The message of its name arrives while the process runs | A comment @FlowerBPM Order cancelled on the process instance |
| Signal | The signal of its name comes while the process runs. Every running process instance with this event sub-process gets it | A comment @FlowerBPM signal Price list changed on any work item |
| Escalation | An escalation throw or end event of the process is reached | A manager steps in |
How messages and signals reach the process: Messages and signals. How a timer counts its days: BPMN Timer Events.
Interrupting or non-interrupting
Every event sub-process is one of two kinds.
| Interrupting (solid border) | Non-interrupting (dashed border) | |
|---|---|---|
| The process | Stops. Flower closes its open work items | Goes on |
| The event sub-process | Takes over | Runs beside the process |
| The process instance ends | After the event sub-process | When both are done |
| Typical use | Order cancelled: stop all work and refund | Customer asks for status: answer, and keep working |
When Flower closes the open work items, it cancels them, see Which Status Flower Sets. The tasks inside the event sub-process become work items as usual.

Model an event sub-process
The example: the customer can cancel an order at any time.
Draw the event sub-process
In the Flower modeler, add an expanded sub-process inside the process, select it, click the wrench (Change element) and choose Event sub-process. Then give its start event a trigger: timer, message, signal, error or condition. Do not connect it to the other steps.
Choose the start event
Give it a message start event and select or create a message with the name Order cancelled. Keep it interrupting: the order process should stop.
Model what happens
Add the tasks inside, for example Refund the payment and Inform the customer, and an end event.
Publish and test
Publish the model and start a process instance. While a task is open, write the comment @FlowerBPM Order cancelled on the process instance. Flower closes the open work item and creates Refund the payment.
The other start events are set as in their own reference: an expression on the process instance for the conditional event, a duration for the timer, the Jira status of the error for the error event. See the reference of each event in BPMN Events.
Rules to know
- The start event of the process. A process can have event sub-processes when its start events have no event definition, or when it has a single start event with one (timer, conditional, message or signal). With further start events beside such a start event, its event sub-processes never start. The validator warns.
- A Jira status does not escalate the whole process. Moving a work item into an escalation status escalates only the escalation boundary event of its own task, not an escalation event sub-process. An escalation event sub-process starts at an escalation throw or end event of the process.
- Not every start event runs. An event sub-process with a compensation or multiple start event does not start.
- A message or signal that comes too early is not kept for later. The event sub-process listens only while the process runs.
Event sub-process or boundary event?
| Boundary event | Event sub-process | |
|---|---|---|
| Watches | One task, while it is open | The whole process, while it runs |
| Drawn | On the border of the task | Inside the process, without flows |
| Interrupting | Closes the work item of the task | Closes all open work items of the process |
| Use it when | The event matters only for this step | The event can come at any step |
If the event matters only while one task is open, the boundary event is easier to read. To combine boundary events on one task, see Several Boundary Events at One Task.
Frequently asked questions
What happens to the open work items when an event sub-process starts?
Interrupting, Flower closes the open work items of the process and the event sub-process takes over. Non-interrupting, they stay open and the event sub-process runs beside them.
Does a Jira status start an escalation event sub-process?
No. The Jira status escalates only the escalation boundary event of the task. An escalation throw or end event of the process starts the event sub-process.
Read more
- BPMN Sub-Processes: event sub-processes in the BPMN standard and in Flower BPM.
- Messages and signals: send a message or a signal that starts an event sub-process.
- Escalate a Task with a Jira Status: react to one task instead of the whole process.
- Set Jira Due Dates with Timer Events: timers on tasks and in the flow.
