@aranzatech/diagrams-bpmn 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-m8fHIiKH.cjs';
1
+ export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-D2AcvrDO.cjs';
2
2
  export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.cjs';
3
- export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementSize, e as BpmnElementType, f as BpmnEventSemantics, g as BpmnHandlePolicy, h as BpmnNodeData, i as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-DznxZxpV.cjs';
3
+ export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-rWbKYrHH.cjs';
4
4
  export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './nodes/index.cjs';
5
5
  export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.cjs';
6
6
  export { parseBpmnXml, serializeBpmnXml } from './xml/index.cjs';
7
- export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnRFEdge, c as BpmnRFNode } from './types-vVi5T7qj.cjs';
7
+ export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-fDlPLIHd.cjs';
8
8
  export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.cjs';
9
9
  export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './modeling/index.cjs';
10
10
  export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity, validateBpmnDiagram } from './validation/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-DIBySQqA.js';
1
+ export { B as BPMN_ELEMENT_CATALOG, a as BPMN_RESIZABLE_ELEMENT_TYPES, g as getBpmnElementSize, b as getElementMeta, i as isBpmnElementResizable } from './catalog-CQtKEV7q.js';
2
2
  export { acceptsBoundaryEvents, getHandlePolicy, getOrientation, isChoreographyType, isContainerType, isConversationType, isDataType, isEventType, isGatewayType, isTaskType, supportsCollapse, supportsMarkers } from './elements/index.js';
3
- export { B as BpmnCategory, a as BpmnEdgeData, b as BpmnEdgeType, c as BpmnElementMeta, d as BpmnElementSize, e as BpmnElementType, f as BpmnEventSemantics, g as BpmnHandlePolicy, h as BpmnNodeData, i as BpmnOrientation, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-DznxZxpV.js';
3
+ export { B as BpmnCategory, a as BpmnDefinitionsSet, b as BpmnEdgeData, c as BpmnEdgeType, d as BpmnElementMeta, e as BpmnElementSize, f as BpmnElementType, g as BpmnErrorDefinition, h as BpmnEscalationDefinition, i as BpmnEventDefinition, j as BpmnEventSemantics, k as BpmnHandlePolicy, l as BpmnMessageDefinition, m as BpmnNodeData, n as BpmnOrientation, o as BpmnProcessVariable, p as BpmnSignalDefinition, q as BpmnTimerDefinition, r as BpmnTimerKind, E as EventTrigger, S as SubProcessVariant, T as TaskMarker } from './types-rWbKYrHH.js';
4
4
  export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './nodes/index.js';
5
5
  export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './edges/index.js';
6
6
  export { parseBpmnXml, serializeBpmnXml } from './xml/index.js';
7
- export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnRFEdge, c as BpmnRFNode } from './types-BxjCV2oX.js';
7
+ export { B as BpmnExportOptions, a as BpmnImportResult, b as BpmnProcessModel, c as BpmnRFEdge, d as BpmnRFNode } from './types-CIBColRi.js';
8
8
  export { SimDiagram, SimEdge, SimLogEntry, SimLogType, SimNode, SimStatus, SimToken, SimVariables, SimulationState, createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './simulation/index.js';
9
9
  export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, BpmnClipboardState, BpmnConnectionRule, BpmnDiagramDocument, BpmnDiagramState, ConnectBpmnOptions, CreateBpmnNodeOptions, FindBpmnContainerAtOptions, MoveBpmnLaneOptions, PasteBpmnOptions, ReorderBpmnLaneOptions, ReparentBpmnNodeAtPositionOptions, ReparentBpmnNodeOptions, ReplaceBpmnNodeOptions, ResizeBpmnNodeOptions, RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './modeling/index.js';
10
10
  export { BpmnValidationIssue, BpmnValidationOptions, BpmnValidationResult, BpmnValidationSeverity, validateBpmnDiagram } from './validation/index.js';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import './chunk-OZKTOILD.js';
2
2
  export { AnnotationNode, BPMN_NODE_TYPES, BoundaryEventNode, CallChoreographyNode, CallConversationNode, ChoreographyTaskNode, ConversationNode, DataInputNode, DataObjectNode, DataObjectReferenceNode, DataOutputNode, DataStoreNode, DataStoreReferenceNode, EndEventNode, GatewayNode, GroupNode, IntermediateCatchEventNode, IntermediateThrowEventNode, LaneNode, PoolNode, StartEventNode, SubChoreographyNode, SubConversationNode, SubProcessNode, TaskNode } from './chunk-IMW6RG6F.js';
3
3
  export { AssociationEdge, BPMN_EDGE_TYPES, ConversationLinkEdge, DataAssociationEdge, MessageFlowEdge, SequenceFlowEdge } from './chunk-O3NWJ5H7.js';
4
4
  import './chunk-PDTXM32P.js';
5
- export { parseBpmnXml, serializeBpmnXml } from './chunk-33AR3PXF.js';
5
+ export { parseBpmnXml, serializeBpmnXml } from './chunk-ASZ3TFNQ.js';
6
6
  export { createSimulation, fire, getFireable, isCompleted, setVariable, tick } from './chunk-QOGZITWB.js';
7
7
  export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeCommand, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnNodeZIndexes } from './chunk-7MKU37XQ.js';
8
8
  export { validateBpmnDiagram } from './chunk-ZFGQVLHB.js';
@@ -1,8 +1,8 @@
1
1
  import { ModelingRules, ClipboardState, DiagramState, DiagramCommand, ConnectionValidator, SelectionState, CommandStackState } from '@aranzatech/diagrams-core';
2
2
  import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
3
- import { b as BpmnEdgeType, a as BpmnEdgeData, e as BpmnElementType, h as BpmnNodeData } from '../types-DznxZxpV.cjs';
4
- import { c as BpmnRFNode, b as BpmnRFEdge } from '../types-vVi5T7qj.cjs';
5
- export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-m8fHIiKH.cjs';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-rWbKYrHH.cjs';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-fDlPLIHd.cjs';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-D2AcvrDO.cjs';
6
6
  import '@xyflow/react';
7
7
 
8
8
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
@@ -1,8 +1,8 @@
1
1
  import { ModelingRules, ClipboardState, DiagramState, DiagramCommand, ConnectionValidator, SelectionState, CommandStackState } from '@aranzatech/diagrams-core';
2
2
  import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
3
- import { b as BpmnEdgeType, a as BpmnEdgeData, e as BpmnElementType, h as BpmnNodeData } from '../types-DznxZxpV.js';
4
- import { c as BpmnRFNode, b as BpmnRFEdge } from '../types-BxjCV2oX.js';
5
- export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-DIBySQqA.js';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-rWbKYrHH.js';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-CIBColRi.js';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-CQtKEV7q.js';
6
6
  import '@xyflow/react';
7
7
 
8
8
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
@@ -1,5 +1,5 @@
1
1
  import { Node, Edge } from '@xyflow/react';
2
- import { h as BpmnNodeData, a as BpmnEdgeData } from './types-DznxZxpV.js';
2
+ import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-rWbKYrHH.js';
3
3
 
4
4
  type BpmnRFNode = Node<BpmnNodeData>;
5
5
  type BpmnRFEdge = Edge<BpmnEdgeData>;
@@ -7,6 +7,13 @@ interface BpmnImportResult {
7
7
  nodes: BpmnRFNode[];
8
8
  edges: BpmnRFEdge[];
9
9
  warnings: string[];
10
+ process?: BpmnProcessModel;
11
+ }
12
+ interface BpmnProcessModel {
13
+ processId?: string;
14
+ executable?: boolean;
15
+ documentation?: string;
16
+ definitions?: BpmnDefinitionsSet;
10
17
  }
11
18
  interface BpmnExportOptions {
12
19
  /** Diagram name written into the XML. */
@@ -15,6 +22,8 @@ interface BpmnExportOptions {
15
22
  id?: string;
16
23
  /** Pretty-print the XML output. Defaults to true. */
17
24
  format?: boolean;
25
+ /** Optional process-level metadata and global definitions. */
26
+ process?: BpmnProcessModel;
18
27
  }
19
28
 
20
- export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnRFEdge as b, BpmnRFNode as c };
29
+ export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnProcessModel as b, BpmnRFEdge as c, BpmnRFNode as d };
@@ -1,5 +1,5 @@
1
1
  import { Node, Edge } from '@xyflow/react';
2
- import { h as BpmnNodeData, a as BpmnEdgeData } from './types-DznxZxpV.cjs';
2
+ import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-rWbKYrHH.cjs';
3
3
 
4
4
  type BpmnRFNode = Node<BpmnNodeData>;
5
5
  type BpmnRFEdge = Edge<BpmnEdgeData>;
@@ -7,6 +7,13 @@ interface BpmnImportResult {
7
7
  nodes: BpmnRFNode[];
8
8
  edges: BpmnRFEdge[];
9
9
  warnings: string[];
10
+ process?: BpmnProcessModel;
11
+ }
12
+ interface BpmnProcessModel {
13
+ processId?: string;
14
+ executable?: boolean;
15
+ documentation?: string;
16
+ definitions?: BpmnDefinitionsSet;
10
17
  }
11
18
  interface BpmnExportOptions {
12
19
  /** Diagram name written into the XML. */
@@ -15,6 +22,8 @@ interface BpmnExportOptions {
15
22
  id?: string;
16
23
  /** Pretty-print the XML output. Defaults to true. */
17
24
  format?: boolean;
25
+ /** Optional process-level metadata and global definitions. */
26
+ process?: BpmnProcessModel;
18
27
  }
19
28
 
20
- export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnRFEdge as b, BpmnRFNode as c };
29
+ export type { BpmnExportOptions as B, BpmnImportResult as a, BpmnProcessModel as b, BpmnRFEdge as c, BpmnRFNode as d };
@@ -5,6 +5,53 @@ type BpmnEventSemantics = "start" | "intermediateCatch" | "intermediateThrow" |
5
5
  type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Transaction" | "EventSubProcess" | "AdHocSubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
6
6
  type BpmnEdgeType = "sequenceFlow" | "messageFlow" | "association" | "dataAssociation" | "conversationLink";
7
7
  type EventTrigger = "none" | "message" | "timer" | "escalation" | "conditional" | "error" | "cancel" | "compensation" | "signal" | "link" | "terminate" | "multiple" | "parallelMultiple";
8
+ type BpmnTimerKind = "date" | "duration" | "cycle";
9
+ interface BpmnTimerDefinition {
10
+ kind: BpmnTimerKind;
11
+ value: string;
12
+ }
13
+ interface BpmnMessageDefinition {
14
+ id: string;
15
+ name: string;
16
+ }
17
+ interface BpmnSignalDefinition {
18
+ id: string;
19
+ name: string;
20
+ }
21
+ interface BpmnErrorDefinition {
22
+ id: string;
23
+ name: string;
24
+ errorCode?: string;
25
+ }
26
+ interface BpmnEscalationDefinition {
27
+ id: string;
28
+ name: string;
29
+ escalationCode?: string;
30
+ }
31
+ interface BpmnProcessVariable {
32
+ id: string;
33
+ name: string;
34
+ type: "string" | "integer" | "boolean" | "date" | "object" | "array";
35
+ defaultValue?: string;
36
+ description?: string;
37
+ }
38
+ interface BpmnDefinitionsSet {
39
+ messages?: BpmnMessageDefinition[];
40
+ signals?: BpmnSignalDefinition[];
41
+ errors?: BpmnErrorDefinition[];
42
+ escalations?: BpmnEscalationDefinition[];
43
+ variables?: BpmnProcessVariable[];
44
+ }
45
+ interface BpmnEventDefinition extends Record<string, unknown> {
46
+ type: EventTrigger;
47
+ timer?: BpmnTimerDefinition;
48
+ messageRef?: string;
49
+ signalRef?: string;
50
+ errorRef?: string;
51
+ escalationRef?: string;
52
+ conditionExpression?: string;
53
+ linkName?: string;
54
+ }
8
55
  type TaskMarker = "loop" | "parallelMultiple" | "sequentialMultiple" | "compensation";
9
56
  type SubProcessVariant = "embedded" | "event" | "transaction" | "adhoc";
10
57
  interface BpmnElementMeta {
@@ -59,10 +106,23 @@ interface BpmnNodeData extends Record<string, unknown> {
59
106
  };
60
107
  /** Event trigger symbol rendered inside the event circle. */
61
108
  trigger?: EventTrigger;
109
+ /** Unified event definition payload used for BPMN 2.0 serialization and UI. */
110
+ eventDefinition?: BpmnEventDefinition;
62
111
  /** True for non-interrupting boundary events / event sub-process starts. */
63
112
  isNonInterrupting?: boolean;
64
113
  /** BoundaryEvent only: BPMN element id this boundary event is attached to. */
65
114
  attachedToRef?: string;
115
+ /** Compatibility alias used by older Aranza editors. */
116
+ cancelActivity?: boolean;
117
+ /** Legacy flat event fields kept during migration to eventDefinition. */
118
+ timer?: BpmnTimerDefinition;
119
+ timerExpression?: BpmnTimerDefinition;
120
+ messageRef?: string;
121
+ signalRef?: string;
122
+ errorRef?: string;
123
+ escalationRef?: string;
124
+ conditionExpression?: string;
125
+ linkName?: string;
66
126
  /** Raw BPMN documentation text. */
67
127
  documentation?: string;
68
128
  /** Task instance markers shown at the bottom of the task box. */
@@ -108,4 +168,4 @@ interface BpmnEdgeData extends Record<string, unknown> {
108
168
  }>;
109
169
  }
110
170
 
111
- export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c, BpmnElementSize as d, BpmnElementType as e, BpmnEventSemantics as f, BpmnHandlePolicy as g, BpmnNodeData as h, BpmnOrientation as i };
171
+ export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnDefinitionsSet as a, BpmnEdgeData as b, BpmnEdgeType as c, BpmnElementMeta as d, BpmnElementSize as e, BpmnElementType as f, BpmnErrorDefinition as g, BpmnEscalationDefinition as h, BpmnEventDefinition as i, BpmnEventSemantics as j, BpmnHandlePolicy as k, BpmnMessageDefinition as l, BpmnNodeData as m, BpmnOrientation as n, BpmnProcessVariable as o, BpmnSignalDefinition as p, BpmnTimerDefinition as q, BpmnTimerKind as r };
@@ -5,6 +5,53 @@ type BpmnEventSemantics = "start" | "intermediateCatch" | "intermediateThrow" |
5
5
  type BpmnElementType = "StartEvent" | "EndEvent" | "IntermediateCatchEvent" | "IntermediateThrowEvent" | "BoundaryEvent" | "Task" | "UserTask" | "ServiceTask" | "ScriptTask" | "ManualTask" | "BusinessRuleTask" | "ReceiveTask" | "SendTask" | "CallActivity" | "ExclusiveGateway" | "InclusiveGateway" | "ParallelGateway" | "EventBasedGateway" | "ComplexGateway" | "SubProcess" | "Transaction" | "EventSubProcess" | "AdHocSubProcess" | "Pool" | "Lane" | "Annotation" | "Group" | "DataObject" | "DataObjectReference" | "DataInput" | "DataOutput" | "DataStore" | "DataStoreReference" | "Conversation" | "SubConversation" | "CallConversation" | "ChoreographyTask" | "SubChoreography" | "CallChoreography";
6
6
  type BpmnEdgeType = "sequenceFlow" | "messageFlow" | "association" | "dataAssociation" | "conversationLink";
7
7
  type EventTrigger = "none" | "message" | "timer" | "escalation" | "conditional" | "error" | "cancel" | "compensation" | "signal" | "link" | "terminate" | "multiple" | "parallelMultiple";
8
+ type BpmnTimerKind = "date" | "duration" | "cycle";
9
+ interface BpmnTimerDefinition {
10
+ kind: BpmnTimerKind;
11
+ value: string;
12
+ }
13
+ interface BpmnMessageDefinition {
14
+ id: string;
15
+ name: string;
16
+ }
17
+ interface BpmnSignalDefinition {
18
+ id: string;
19
+ name: string;
20
+ }
21
+ interface BpmnErrorDefinition {
22
+ id: string;
23
+ name: string;
24
+ errorCode?: string;
25
+ }
26
+ interface BpmnEscalationDefinition {
27
+ id: string;
28
+ name: string;
29
+ escalationCode?: string;
30
+ }
31
+ interface BpmnProcessVariable {
32
+ id: string;
33
+ name: string;
34
+ type: "string" | "integer" | "boolean" | "date" | "object" | "array";
35
+ defaultValue?: string;
36
+ description?: string;
37
+ }
38
+ interface BpmnDefinitionsSet {
39
+ messages?: BpmnMessageDefinition[];
40
+ signals?: BpmnSignalDefinition[];
41
+ errors?: BpmnErrorDefinition[];
42
+ escalations?: BpmnEscalationDefinition[];
43
+ variables?: BpmnProcessVariable[];
44
+ }
45
+ interface BpmnEventDefinition extends Record<string, unknown> {
46
+ type: EventTrigger;
47
+ timer?: BpmnTimerDefinition;
48
+ messageRef?: string;
49
+ signalRef?: string;
50
+ errorRef?: string;
51
+ escalationRef?: string;
52
+ conditionExpression?: string;
53
+ linkName?: string;
54
+ }
8
55
  type TaskMarker = "loop" | "parallelMultiple" | "sequentialMultiple" | "compensation";
9
56
  type SubProcessVariant = "embedded" | "event" | "transaction" | "adhoc";
10
57
  interface BpmnElementMeta {
@@ -59,10 +106,23 @@ interface BpmnNodeData extends Record<string, unknown> {
59
106
  };
60
107
  /** Event trigger symbol rendered inside the event circle. */
61
108
  trigger?: EventTrigger;
109
+ /** Unified event definition payload used for BPMN 2.0 serialization and UI. */
110
+ eventDefinition?: BpmnEventDefinition;
62
111
  /** True for non-interrupting boundary events / event sub-process starts. */
63
112
  isNonInterrupting?: boolean;
64
113
  /** BoundaryEvent only: BPMN element id this boundary event is attached to. */
65
114
  attachedToRef?: string;
115
+ /** Compatibility alias used by older Aranza editors. */
116
+ cancelActivity?: boolean;
117
+ /** Legacy flat event fields kept during migration to eventDefinition. */
118
+ timer?: BpmnTimerDefinition;
119
+ timerExpression?: BpmnTimerDefinition;
120
+ messageRef?: string;
121
+ signalRef?: string;
122
+ errorRef?: string;
123
+ escalationRef?: string;
124
+ conditionExpression?: string;
125
+ linkName?: string;
66
126
  /** Raw BPMN documentation text. */
67
127
  documentation?: string;
68
128
  /** Task instance markers shown at the bottom of the task box. */
@@ -108,4 +168,4 @@ interface BpmnEdgeData extends Record<string, unknown> {
108
168
  }>;
109
169
  }
110
170
 
111
- export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnEdgeData as a, BpmnEdgeType as b, BpmnElementMeta as c, BpmnElementSize as d, BpmnElementType as e, BpmnEventSemantics as f, BpmnHandlePolicy as g, BpmnNodeData as h, BpmnOrientation as i };
171
+ export type { BpmnCategory as B, EventTrigger as E, SubProcessVariant as S, TaskMarker as T, BpmnDefinitionsSet as a, BpmnEdgeData as b, BpmnEdgeType as c, BpmnElementMeta as d, BpmnElementSize as e, BpmnElementType as f, BpmnErrorDefinition as g, BpmnEscalationDefinition as h, BpmnEventDefinition as i, BpmnEventSemantics as j, BpmnHandlePolicy as k, BpmnMessageDefinition as l, BpmnNodeData as m, BpmnOrientation as n, BpmnProcessVariable as o, BpmnSignalDefinition as p, BpmnTimerDefinition as q, BpmnTimerKind as r };
@@ -1,6 +1,6 @@
1
- import { c as BpmnRFNode, b as BpmnRFEdge } from '../types-vVi5T7qj.cjs';
1
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-fDlPLIHd.cjs';
2
2
  import '@xyflow/react';
3
- import '../types-DznxZxpV.cjs';
3
+ import '../types-rWbKYrHH.cjs';
4
4
 
5
5
  type BpmnValidationSeverity = "error" | "warning" | "info";
6
6
  interface BpmnValidationIssue {
@@ -1,6 +1,6 @@
1
- import { c as BpmnRFNode, b as BpmnRFEdge } from '../types-BxjCV2oX.js';
1
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-CIBColRi.js';
2
2
  import '@xyflow/react';
3
- import '../types-DznxZxpV.js';
3
+ import '../types-rWbKYrHH.js';
4
4
 
5
5
  type BpmnValidationSeverity = "error" | "warning" | "info";
6
6
  interface BpmnValidationIssue {