connect
Link two BPMN elements by IDs, adding a condition or marking as default flow to define sequence flow behavior.
Instructions
Connect two elements in the current diagram
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Label for the connection (optional) | |
| sourceId | Yes | ID of the source element | |
| targetId | Yes | ID of the target element | |
| condition | No | Formal condition expression for a sequence flow; cannot be combined with isDefault | |
| isDefault | No | Make this the source activity/gateway default flow; default flows cannot have conditions | |
| conditionType | No | BPMN expression type; only valid when condition is supplied (defaults to bpmn:FormalExpression) | |
| conditionLanguage | No | Language URI or identifier; only valid when condition is supplied |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Active BPMN filename | |
| sourceId | Yes | Stable generated or existing BPMN ID | |
| targetId | Yes | Stable generated or existing BPMN ID | |
| connectionId | Yes | Stable generated or existing BPMN ID | |
| connectionType | Yes |