End a Task with an Error Status
Flower is human-driven BPM: the work items of your process are done by people in Jira. Sometimes a task cannot be done as planned. The order is cancelled, the request is rejected, the delivery has failed. In BPMN this is an error: the task ends without its normal result, and the process takes another path.
Reference: BPMN Error Events explains the error event in the BPMN standard, with all its positions.
With Flower, a person throws the error by resolving the work item in an error status, for example Cancelled. An error boundary event on the task catches it.
How It Works
- The activity has an error boundary event with a Jira status, for example Cancelled.
- A person resolves the work item in this status. The workflow of the work type must offer it.
- Flower ends the activity and takes the path of the error event instead of the normal outgoing flow.
If the work item is resolved in any other status, the process takes the normal outgoing flow.
An error boundary event is always interrupting: the activity ends with the error.
Flower checks the status when the work item gets its resolution. A status without a resolution, for example an On Hold status in the middle of the workflow, does not trigger the event. Make sure that the transition to the error status sets a resolution.
Model the Event in the Editor
- Drag an intermediate event onto the edge of the activity.
- Use the wrench icon to change it into an error boundary event.
- Give it a label, for example Cancelled.
- In the properties panel, open Error and choose when the event fires, the same way as for a conditional boundary event:
- one or more statuses of the work item (type to search; the list shows the statuses of the work type of the activity, else of its swimlane or of the Flower settings),
- one or more resolutions (with statuses as well, both must fit),
- or an expression on the work item, for example
${cur.fields.priority.name == 'Highest'}, used when no status and no resolution is chosen.
- Connect the event to the activity that should follow, for example Refund.
In the BPMN file, the first status is also a BPMN error (its name and error code), so the model stays valid BPMN for other tools; the statuses, resolutions and the expression are kept as Flower attributes of the event. Models with only the BPMN error work as before: its name is the status. Flower compares the names without case, accents, and apostrophes, so Won’t Do and WONT DO are the same.
An error boundary event without a status, a resolution or an expression never fires. The model validator shows a warning for it.
Example: The AI Agent Cannot Decide
When a Rovo agent does the task, its rule can move the work item to a status such as Needs human when the agent’s answer is not one of the expected ones. An error boundary event with this status sends the request to a task for a person, for example Classify by hand.
Error Event or Conditional Event?
Both take another path when a work item is resolved.
| Error boundary event | Conditional boundary event | |
|---|---|---|
| Trigger | The work item is resolved and fits | The work item is resolved and fits |
| Configuration | Statuses, resolutions or an expression | Statuses, resolutions or an expression |
| Meaning in the diagram | The task failed | Any outcome |
| Interrupting | Always | Interrupting or non-interrupting |
Both are set the same way. Use the error event when a person ends the task as failed or cancelled: the diagram says so. Use the conditional event for other outcomes, and when the event should not interrupt the task.
What’s Next?
-
BPMN Error Events: The error event in the BPMN standard, with all its positions.
-
Escalate a Task with a Jira Status: Call for help while the task stays open.
-
Conditional Boundary Events: Branch on any outcome of a task.
-
Make Approval Steps: Approvals with a gateway or a boundary event.
-
BPMN Events: All events Flower executes.