> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# BPMN Event Buttons

These buttons can be used to trigger error and escalation events in user tasks. They will submit all entered values and activate the corresponding boundary event. To learn more about error and escalation events, see our section about [events](/reference/bpmn20/events).

### Error

An Error Button can be bound to an error code and error message using the `cam-error-code` and `cam-error-message` directive.
Providing an error message is optional.

```html theme={null}
<button cam-error-code="bpmn-error-543"
 cam-error-message="anErrorMessage" />
```

In the example above, the button is bound to the error code `bpmn-error-543` with the message `anErrorMessage`.

### Escalation

In a similar manner to the error button, an escalation button can be bound to an escalation code using the `cam-escalation-code` directive.

```html theme={null}
<button cam-escalation-code="bpmn-escalation-123" />
```
