You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support is provided to trigger interrupting BPMN Errors:
123
123
124
+
Trigger a formio event with the name `bpmn-error` (typically with a button: set the button event to `bpmn-error`)
124
125
125
-
### Submitting a Form as a BPMN Escalation
126
+
The default error code is `default`. To set a custom error code, create a variable in the formio submission with the key
127
+
`_errorCode`. Typical use cases are to use a `text` component or a `hidden` component.
128
+
129
+
No error message is submitted by default. To set a custom error message, create a variable in the formio submission with the key
130
+
`_errorMessage`. Typical use cases are to use a `text` component or a `hidden` component.
131
+
132
+
**The submission variable created through the bpmn-error cannot be validated using the formio server validator: this is a limitation in Camunda**
133
+
134
+
## Trigger 'BPMN Escalations'
135
+
136
+
Support is provided to trigger interrupting and non-interrupting BPMN Escalations. Note that Camunda's form API does not
137
+
make a distinction between interrupting and non-interrupting escalation events and therefore some best practices are implemented:
138
+
139
+
The escalation code is `default`. To set a custom escalation code, create a variable in the formio submission with the key
140
+
`_escalationCode`. Typical use cases are to use a `text` component or a `hidden` component.
141
+
142
+
**The submission variable created through the bpmn-escalation cannot be validated using the formio server validator: this is a limitation in Camunda**
143
+
144
+
### Interrupting BPMN Escalations
145
+
146
+
To trigger BPMN Escalation that is designed to be used with a interrupting BPMN Escalation boundary event:
147
+
148
+
Trigger a formio event with the name `bpmn-escalation` (typically with a button: set the button event to `bpmn-escalaton`)
149
+
150
+
### Non-Interrupting BPMN Escalations
151
+
152
+
To trigger BPMN Escalation that is designed to be used with a non-interrupting BPMN Escalation boundary event:
153
+
154
+
Trigger a formio event with the name `bpmn-escalation-noninterrupt` (typically with a button: set the button event to `bpmn-escalaton-noninterrupt`)
155
+
156
+
A non-interrupting escalation means the user task will remain in the task list, and the submission variable name will be given a suffix of `_escalation`.
157
+
The suffix is used to ensure if/when the user task is normally completed, the submission variable created through the
158
+
user task completion does not overwrite the submission variable created through escalation.
0 commit comments