Appearance
BPMN Panel API / Panel Types / ToolbarEdgeItem
Type Alias: ToolbarEdgeItem
ts
type ToolbarEdgeItem = ToolbarItemBase & {
bpmnType?: BpmnEdgeKind;
request: {
linkName: string;
};
data?: Record<string, any>;
};Defined in: features/panels/variants/bpmn/types/panel/graph/toolbar/toolbar-item.ts:591
Toolbar item for creating BPMN edges
- Defines how to create connections between nodes from the palette.
graph.edges[]remains a declared legacy shape; the current existing-edge renderer does not consume it.
Key Concepts
Separation of Concerns:
- Toolbar edge item = "How to create" (palette concerns)
- Existing-edge display = inferred directly from backend connector data
Backend Integration:
request.linkNameis REQUIRED for edge creation- Sent to backend when user connects two nodes
- Must match backend link entity 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 entity type. Examples ts ts ts |
|
| 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"
}
}