add_association
Add a BPMN association between two elements by providing their source and target IDs and an optional arrow direction.
Instructions
Add a BPMN association artifact between two compatible BaseElements
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": {
"sourceId": "<sourceId>",
"targetId": "<targetId>"
},
"name": "add_association"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceId | Yes | ID of the source BaseElement | |
| targetId | Yes | ID of the target BaseElement | |
| associationDirection | No | Arrow direction for the association; BPMN defaults to None | None |
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 | |
| associationId | Yes | Stable generated or existing BPMN ID | |
| associationDirection | Yes |