add_event
Add BPMN events to the current diagram with support for start, end, intermediate, and boundary types, including event definitions like timers and messages.
Instructions
Add an event to the current diagram
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the event | |
| ownerId | No | Owning process ID (required when adding to a collaboration) | |
| scopeId | No | Containing process or subprocess ID (defaults to ownerId) | |
| attachTo | No | Required activity ID for boundary events; invalid on other events. Cancel boundaries require a transaction. | |
| position | No | Position of the event (optional) | |
| eventType | Yes | Type of event to add | |
| cancelActivity | No | Whether a boundary event interrupts its attached activity; compensation boundaries must be false | |
| eventDefinition | No | Event definition type. The event kind/type combination must be BPMN-legal. | |
| eventDefinitionPayload | No | Definition details. Timer requires timer; conditional requires condition. Message/signal/error/escalation roots are generated and may be named or assigned a stable ID here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Active BPMN filename | |
| elementId | Yes | Stable generated or existing BPMN ID | |
| elementType | Yes |