@aranzatech/diagrams-bpmn 0.2.8 → 0.2.10

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.
Files changed (38) hide show
  1. package/dist/{catalog-DW0Hknp2.d.ts → catalog-BOwJOaXV.d.ts} +1 -1
  2. package/dist/{catalog-CjGdTFxc.d.cts → catalog-Ch3YT0-0.d.cts} +1 -1
  3. package/dist/{chunk-KW2QVBOB.js → chunk-HLCUGTEK.js} +26 -5
  4. package/dist/chunk-HLCUGTEK.js.map +1 -0
  5. package/dist/{chunk-XTUYPA3E.js → chunk-UAWLUDKC.js} +8 -5
  6. package/dist/chunk-UAWLUDKC.js.map +1 -0
  7. package/dist/elements/index.d.cts +3 -3
  8. package/dist/elements/index.d.ts +3 -3
  9. package/dist/index.cjs +30 -5
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +4 -4
  12. package/dist/index.d.ts +4 -4
  13. package/dist/index.js +2 -2
  14. package/dist/layout/index.cjs +881 -0
  15. package/dist/layout/index.cjs.map +1 -0
  16. package/dist/layout/index.d.cts +23 -0
  17. package/dist/layout/index.d.ts +23 -0
  18. package/dist/layout/index.js +19 -0
  19. package/dist/layout/index.js.map +1 -0
  20. package/dist/modeling/index.cjs +6 -2
  21. package/dist/modeling/index.cjs.map +1 -1
  22. package/dist/modeling/index.d.cts +6 -4
  23. package/dist/modeling/index.d.ts +6 -4
  24. package/dist/modeling/index.js +1 -1
  25. package/dist/{types-wFn_tJLY.d.cts → types-BTuiBv7p.d.cts} +4 -0
  26. package/dist/{types-wFn_tJLY.d.ts → types-BTuiBv7p.d.ts} +4 -0
  27. package/dist/{types-BjVERSZn.d.cts → types-C7tONwP5.d.cts} +1 -1
  28. package/dist/{types-CBgWMl9p.d.ts → types-DSDMCAre.d.ts} +1 -1
  29. package/dist/validation/index.d.cts +2 -2
  30. package/dist/validation/index.d.ts +2 -2
  31. package/dist/xml/index.cjs +24 -3
  32. package/dist/xml/index.cjs.map +1 -1
  33. package/dist/xml/index.d.cts +3 -3
  34. package/dist/xml/index.d.ts +3 -3
  35. package/dist/xml/index.js +1 -1
  36. package/package.json +7 -2
  37. package/dist/chunk-KW2QVBOB.js.map +0 -1
  38. package/dist/chunk-XTUYPA3E.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { ModelingRules, ClipboardState, DiagramSnapshot, DiagramState, DiagramEventBus, ResizeHandlePosition, DiagramCommand, ConnectionValidator, SmartGuideResult, SelectionState, LayoutCacheOptions, LayoutCache, EdgeLabelOffsetOptions, EdgeLabelLayout, CommandStackState, Viewport, LayoutFn } from '@aranzatech/diagrams-core';
2
2
  import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
3
- import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-wFn_tJLY.cjs';
4
- import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-BjVERSZn.cjs';
5
- export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-CjGdTFxc.cjs';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-BTuiBv7p.cjs';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-C7tONwP5.cjs';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-Ch3YT0-0.cjs';
6
6
  import '@xyflow/react';
7
7
 
8
8
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
@@ -142,6 +142,8 @@ declare const BPMN_EDGE_CONNECTION_RULES: Record<BpmnEdgeType, BpmnConnectionRul
142
142
  declare function inferBpmnEdgeType(state: BpmnDiagramState, sourceId: string, targetId: string): BpmnEdgeType;
143
143
  declare function isBpmnEdgeRoutingEditable(edgeType: BpmnEdgeType): boolean;
144
144
  declare function isBpmnProcessNode(type: BpmnElementType): boolean;
145
+ /** Returns true for every element type that can be dragged into a Pool or Lane container. */
146
+ declare function isBpmnDroppableInContainer(type: BpmnElementType): boolean;
145
147
  declare function canContainBpmnElement(parentType: BpmnElementType | undefined, childType: BpmnElementType): true | string;
146
148
  declare function getBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnRFNode[];
147
149
  declare function layoutBpmnPoolLaneNodes(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
@@ -283,4 +285,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
283
285
  */
284
286
  declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
285
287
 
286
- export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
288
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
@@ -1,8 +1,8 @@
1
1
  import { ModelingRules, ClipboardState, DiagramSnapshot, DiagramState, DiagramEventBus, ResizeHandlePosition, DiagramCommand, ConnectionValidator, SmartGuideResult, SelectionState, LayoutCacheOptions, LayoutCache, EdgeLabelOffsetOptions, EdgeLabelLayout, CommandStackState, Viewport, LayoutFn } from '@aranzatech/diagrams-core';
2
2
  import { DiagramDocument, CreateDiagramDocumentOptions } from '@aranzatech/diagrams-core/serialization';
3
- import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-wFn_tJLY.js';
4
- import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-CBgWMl9p.js';
5
- export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-DW0Hknp2.js';
3
+ import { c as BpmnEdgeType, b as BpmnEdgeData, f as BpmnElementType, m as BpmnNodeData } from '../types-BTuiBv7p.js';
4
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-DSDMCAre.js';
5
+ export { g as getBpmnElementSize, i as isBpmnElementResizable } from '../catalog-BOwJOaXV.js';
6
6
  import '@xyflow/react';
7
7
 
8
8
  type BpmnDiagramState = DiagramState<BpmnRFNode, BpmnRFEdge>;
@@ -142,6 +142,8 @@ declare const BPMN_EDGE_CONNECTION_RULES: Record<BpmnEdgeType, BpmnConnectionRul
142
142
  declare function inferBpmnEdgeType(state: BpmnDiagramState, sourceId: string, targetId: string): BpmnEdgeType;
143
143
  declare function isBpmnEdgeRoutingEditable(edgeType: BpmnEdgeType): boolean;
144
144
  declare function isBpmnProcessNode(type: BpmnElementType): boolean;
145
+ /** Returns true for every element type that can be dragged into a Pool or Lane container. */
146
+ declare function isBpmnDroppableInContainer(type: BpmnElementType): boolean;
145
147
  declare function canContainBpmnElement(parentType: BpmnElementType | undefined, childType: BpmnElementType): true | string;
146
148
  declare function getBpmnPoolLanes(state: BpmnDiagramState, poolId: string): BpmnRFNode[];
147
149
  declare function layoutBpmnPoolLaneNodes(nodes: BpmnRFNode[], poolId: string): BpmnRFNode[];
@@ -283,4 +285,4 @@ declare function createBpmnLayoutCache(options?: LayoutCacheOptions): LayoutCach
283
285
  */
284
286
  declare function withBpmnLayoutCache(layoutFn: LayoutFn<BpmnRFNode, BpmnRFEdge>, cache?: LayoutCache): LayoutFn<BpmnRFNode, BpmnRFEdge>;
285
287
 
286
- export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
288
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, type BpmnClipboardState, type BpmnConnectionRule, type BpmnDiagramDocument, type BpmnDiagramSnapshot, type BpmnDiagramState, type BpmnEventBus, type ConnectBpmnOptions, type CreateBpmnNodeOptions, type FindBpmnContainerAtOptions, type GroupAsBpmnSubProcessOptions, type MoveBpmnLaneOptions, type PasteBpmnOptions, type ReorderBpmnLaneOptions, type ReparentBpmnNodeAtPositionOptions, type ReparentBpmnNodeOptions, type ReplaceBpmnNodeOptions, type ResizeBpmnNodeByHandleOptions, type ResizeBpmnNodeOptions, type RouteBpmnEdgeOptions, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes };
@@ -1,4 +1,4 @@
1
- export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from '../chunk-XTUYPA3E.js';
1
+ export { BPMN_EDGE_CONNECTION_RULES, BPMN_MODELING_RULES, BPMN_POOL_LANE_LAYOUT, BPMN_ROUTABLE_EDGE_TYPES, BPMN_SELECTION_STYLE, attachBoundaryEventCommand, bpmnConnectionValidators, canContainBpmnElement, computeBpmnSmartGuides, connectBpmnCommand, copyBpmnElements, createBpmnDiagramDocument, createBpmnEventBus, createBpmnLayoutCache, createBpmnNode, createBpmnNodeCommand, deleteBpmnElementsCommand, deserializeBpmnDiagram, deserializeBpmnDiagramSnapshot, findBpmnContainerAt, getBpmnDragHandleSelector, getBpmnEdgeLabelLayout, getBpmnLaneIndexAtPosition, getBpmnNodeAbsolutePosition, getBpmnNodeCenter, getBpmnNodeSize, getBpmnNodeZIndex, getBpmnPoolLanes, getBpmnTabOrder, groupAsBpmnSubProcessCommand, inferBpmnEdgeType, isBpmnDroppableInContainer, isBpmnEdgeRoutingEditable, isBpmnProcessNode, layoutBpmnPoolLaneNodes, layoutBpmnPoolLanes, moveBpmnLaneCommand, parseBpmnDiagramDocument, pasteBpmnElementsCommand, persistBpmnHistory, reorderBpmnLane, reorderBpmnLaneAfterDrop, reorderBpmnLaneCommand, reparentBpmnNodeAtPosition, reparentBpmnNodeCommand, replaceBpmnNodeCommand, resizeBpmnNodeByHandleCommand, resizeBpmnNodeCommand, restoreBpmnHistory, routeBpmnEdgeCommand, runBpmnCommand, runBpmnCommands, selectBpmnElementsCommand, serializeBpmnDiagram, toBpmnRelativePosition, validateBpmnConnectionForEdgeType, withBpmnLayoutCache, withBpmnNodeZIndexes } from '../chunk-UAWLUDKC.js';
2
2
  import '../chunk-RLAJNRF2.js';
3
3
  export { getBpmnElementSize, isBpmnElementResizable } from '../chunk-L5Z22RLX.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -168,6 +168,10 @@ interface BpmnNodeData extends Record<string, unknown> {
168
168
  decisionRef?: string;
169
169
  /** UserTask: form key resolved to a FormDefinition by name at runtime. */
170
170
  formKey?: string;
171
+ /** UserTask: comma-separated Flowable user ids that can claim this task. */
172
+ candidateUsers?: string;
173
+ /** UserTask: comma-separated Flowable group ids that can claim this task. */
174
+ candidateGroups?: string;
171
175
  /** AdHocSubProcess: FEEL expression that determines when the sub-process completes. */
172
176
  completionCondition?: string;
173
177
  }
@@ -168,6 +168,10 @@ interface BpmnNodeData extends Record<string, unknown> {
168
168
  decisionRef?: string;
169
169
  /** UserTask: form key resolved to a FormDefinition by name at runtime. */
170
170
  formKey?: string;
171
+ /** UserTask: comma-separated Flowable user ids that can claim this task. */
172
+ candidateUsers?: string;
173
+ /** UserTask: comma-separated Flowable group ids that can claim this task. */
174
+ candidateGroups?: string;
171
175
  /** AdHocSubProcess: FEEL expression that determines when the sub-process completes. */
172
176
  completionCondition?: string;
173
177
  }
@@ -1,5 +1,5 @@
1
1
  import { Node, Edge } from '@xyflow/react';
2
- import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-wFn_tJLY.cjs';
2
+ import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-BTuiBv7p.cjs';
3
3
 
4
4
  type BpmnRFNode = Node<BpmnNodeData>;
5
5
  type BpmnRFEdge = Edge<BpmnEdgeData>;
@@ -1,5 +1,5 @@
1
1
  import { Node, Edge } from '@xyflow/react';
2
- import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-wFn_tJLY.js';
2
+ import { m as BpmnNodeData, b as BpmnEdgeData, a as BpmnDefinitionsSet } from './types-BTuiBv7p.js';
3
3
 
4
4
  type BpmnRFNode = Node<BpmnNodeData>;
5
5
  type BpmnRFEdge = Edge<BpmnEdgeData>;
@@ -1,6 +1,6 @@
1
- import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-BjVERSZn.cjs';
1
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-C7tONwP5.cjs';
2
2
  import '@xyflow/react';
3
- import '../types-wFn_tJLY.cjs';
3
+ import '../types-BTuiBv7p.cjs';
4
4
 
5
5
  type BpmnValidationSeverity = "error" | "warning" | "info";
6
6
  interface BpmnValidationIssue {
@@ -1,6 +1,6 @@
1
- import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-CBgWMl9p.js';
1
+ import { d as BpmnRFNode, c as BpmnRFEdge } from '../types-DSDMCAre.js';
2
2
  import '@xyflow/react';
3
- import '../types-wFn_tJLY.js';
3
+ import '../types-BTuiBv7p.js';
4
4
 
5
5
  type BpmnValidationSeverity = "error" | "warning" | "info";
6
6
  interface BpmnValidationIssue {
@@ -23,7 +23,10 @@ var ARANZA_DESCRIPTOR = {
23
23
  // BusinessRuleTask: reference to a DMN decision table id
24
24
  { name: "decisionRef", isAttr: true, type: "String" },
25
25
  // UserTask: form key resolved to a FormDefinition name at runtime
26
- { name: "formKey", isAttr: true, type: "String" }
26
+ { name: "formKey", isAttr: true, type: "String" },
27
+ // UserTask: Flowable task assignment — comma-separated ids
28
+ { name: "candidateUsers", isAttr: true, type: "String" },
29
+ { name: "candidateGroups", isAttr: true, type: "String" }
27
30
  ]
28
31
  }
29
32
  ],
@@ -897,6 +900,10 @@ function extractAranzaExtensions(el) {
897
900
  if (fde) result.flowableDelegateExpression = fde;
898
901
  const fk = asString(elAttrs["flowable:formKey"]);
899
902
  if (fk) result.formKey = fk;
903
+ const cu = asString(elAttrs["flowable:candidateUsers"]);
904
+ if (cu) result.candidateUsers = cu;
905
+ const cg = asString(elAttrs["flowable:candidateGroups"]);
906
+ if (cg) result.candidateGroups = cg;
900
907
  }
901
908
  const ext = el.extensionElements;
902
909
  if (!ext) return result;
@@ -922,6 +929,10 @@ function extractAranzaExtensions(el) {
922
929
  if (decisionRef) result.decisionRef = decisionRef;
923
930
  const formKey = asString(taskConfig.formKey);
924
931
  if (formKey) result.formKey = formKey;
932
+ const candidateUsers = asString(taskConfig.candidateUsers);
933
+ if (candidateUsers) result.candidateUsers = candidateUsers;
934
+ const candidateGroups = asString(taskConfig.candidateGroups);
935
+ if (candidateGroups) result.candidateGroups = candidateGroups;
925
936
  return result;
926
937
  }
927
938
  function extractCompletionCondition(el) {
@@ -1291,7 +1302,9 @@ function buildAranzaExtensionElements(moddle, node) {
1291
1302
  const flowableDelegateExpression = typeof node.data.flowableDelegateExpression === "string" ? node.data.flowableDelegateExpression : void 0;
1292
1303
  const decisionRef = typeof node.data.decisionRef === "string" ? node.data.decisionRef : void 0;
1293
1304
  const formKey = typeof node.data.formKey === "string" ? node.data.formKey : void 0;
1294
- if (!priority && !owner && !sla && !connector && !action && !flowableType && !flowableDelegateExpression && !decisionRef && !formKey) {
1305
+ const candidateUsers = typeof node.data.candidateUsers === "string" ? node.data.candidateUsers : void 0;
1306
+ const candidateGroups = typeof node.data.candidateGroups === "string" ? node.data.candidateGroups : void 0;
1307
+ if (!priority && !owner && !sla && !connector && !action && !flowableType && !flowableDelegateExpression && !decisionRef && !formKey && !candidateUsers && !candidateGroups) {
1295
1308
  return null;
1296
1309
  }
1297
1310
  const configAttrs = {};
@@ -1304,6 +1317,8 @@ function buildAranzaExtensionElements(moddle, node) {
1304
1317
  if (flowableDelegateExpression) configAttrs.flowableDelegateExpression = flowableDelegateExpression;
1305
1318
  if (decisionRef) configAttrs.decisionRef = decisionRef;
1306
1319
  if (formKey) configAttrs.formKey = formKey;
1320
+ if (candidateUsers) configAttrs.candidateUsers = candidateUsers;
1321
+ if (candidateGroups) configAttrs.candidateGroups = candidateGroups;
1307
1322
  const taskConfig = moddle.create("aranza:TaskConfig", configAttrs);
1308
1323
  return moddle.create("bpmn:ExtensionElements", { values: [taskConfig] });
1309
1324
  }
@@ -1486,8 +1501,14 @@ function buildFlowElement(moddle, node, allNodes, allEdges) {
1486
1501
  if (script) attrs.script = script;
1487
1502
  }
1488
1503
  if (elementType === "UserTask") {
1504
+ const flowableAttrs = {};
1489
1505
  const fk = typeof node.data.formKey === "string" ? node.data.formKey : void 0;
1490
- if (fk) attrs.$attrs = { "flowable:formKey": fk };
1506
+ const cu = typeof node.data.candidateUsers === "string" ? node.data.candidateUsers : void 0;
1507
+ const cg = typeof node.data.candidateGroups === "string" ? node.data.candidateGroups : void 0;
1508
+ if (fk) flowableAttrs["flowable:formKey"] = fk;
1509
+ if (cu) flowableAttrs["flowable:candidateUsers"] = cu;
1510
+ if (cg) flowableAttrs["flowable:candidateGroups"] = cg;
1511
+ if (Object.keys(flowableAttrs).length > 0) attrs.$attrs = flowableAttrs;
1491
1512
  }
1492
1513
  if (elementType === "ServiceTask") {
1493
1514
  const flowableAttrs = {};