add_activity
Add a BPMN activity (task, subprocess, etc.) to the current diagram with type, name, and optional properties.
Instructions
Add an activity to the current diagram
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the activity | |
| 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 activity (optional) | |
| properties | No | Typed activity properties. multiInstance is portable BPMN and its expression bodies are opaque text; assignee, candidateGroups, and dueDate are Camunda 7 user-task fields and require extensionProfile camunda7. Arbitrary qualified names and raw XML are rejected. | |
| activityType | Yes | Type of activity |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Active BPMN filename | |
| elementId | Yes | Stable generated or existing BPMN ID | |
| elementType | Yes |