add_gateway
Add a gateway to a BPMN diagram by specifying its type (exclusive, parallel, inclusive, event-based, or complex) to manage process flow branching.
Instructions
Add a gateway to the current diagram
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the gateway (optional) | |
| ownerId | No | Owning process ID (required when adding to a collaboration) | |
| scopeId | No | Containing process or subprocess ID (defaults to ownerId) | |
| position | No | Position of the gateway (optional) | |
| gatewayType | Yes | Type of gateway |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Active BPMN filename | |
| elementId | Yes | Stable generated or existing BPMN ID | |
| elementType | Yes |