An Error End Event is used to indicate that a process path ends with an error. When the process flow reaches this event, it throws a defined error that can be caught by another BPMN element.
Error end events are typically used to model business exceptions that interrupt the normal flow of a process and redirect execution to an alternative path.
Use an error end event when a process cannot continue due to a business condition that must be handled explicitly elsewhere in the model.
For example, use an error end event when:
- A validation fails and the process must stop and trigger an exception flow.
- A decision results in a rejection that should be handled by another process path.
- A sub-process encounters a business error that must be caught by a parent process.
Do not use an error end event for general system failures. In BPMN, error events are intended to represent business-level exceptions rather than technical issues.
When the process reaches an error end event:
- The event throws the defined error.
- The normal process flow stops.
- The error is passed to the nearest matching error-catching event, such as an error boundary event, or an error event sub-process
The matching is based on the error code defined in the error configuration. If no matching error-catching event exists, the process ends with the error.