Appearance
BPMN Panel API / Panel Types / ToolbarEdgeItem
Type Alias: ToolbarEdgeItem
ts
type ToolbarEdgeItem = ToolbarItemBase & {
bpmnType?: BpmnEdgeKind;
request: {
linkName: string;
source?: BpmnEdgeEndpoint;
target?: BpmnEdgeEndpoint;
};
data?: Record<string, any>;
};Defined in: features/panels/variants/bpmn/types/panel/graph/toolbar/toolbar-item.ts:674
Toolbar item for creating BPMN edges
- Defines how to create connections between nodes from the palette.
- Existing connectors are rendered directly from backend Link resources.
Key Concepts
Separation of Concerns:
- Toolbar edge item = "How to create" (palette concerns)
- Existing-edge display = inferred directly from backend Link resources
Backend Integration:
request.linkNameis REQUIRED for edge creation- Sent to backend when user connects two nodes
- Must match a backend Link type
Type Declaration
| Name | Type | Description |
|---|---|---|
|
| BPMN edge type for rendering. |
| { | Backend request configuration for edge creation. REQUIRED for edge creation to work properly. |
|
| Name of the Link type to create in the backend. This value is sent in the Must match a backend Link type. Examples ts ts ts |
| Optional persisted source override. When omitted, the Object GUID represented by the visual source node is used. When configured, the endpoint must resolve; creation is rejected instead of silently falling back to that Object GUID. | |
| Optional persisted target override. When omitted, the Object GUID represented by the visual target node is used. When configured, the endpoint must resolve; creation is rejected instead of silently falling back to that Object GUID. | |
|
| Custom data to attach to created edges. This data object is:
Special properties:
Use cases:
Examples Basic connector type json Numeric connector type (for backend compatibility) json With additional metadata json |
Examples
Standard connection
json
{
"id": "connection-standard",
"bpmnType": "bpmn:SequenceFlow",
"icon": "icon icon--arrow",
"request": {
"linkName": "WFConnectorInstance"
}
}Critical connection with custom data
json
{
"id": "connection-critical",
"bpmnType": "bpmn:SequenceFlow",
"icon": "icon icon--alert",
"request": {
"linkName": "WFCriticalPath"
},
"data": {
"connectorType": "critical",
"priority": "high"
}
}