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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gatewayType": "<gatewayType>"
},
"name": "add_gateway"
}
}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 |