@aranzatech/diagrams-bpmn 0.2.12 → 0.2.13
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/{catalog-DUfPajtM.d.cts → catalog-BiLXVn-2.d.cts} +1 -1
- package/dist/{catalog-BKdtbOQT.d.ts → catalog-Di2nzGs9.d.ts} +1 -1
- package/dist/chunk-FBTGIYZS.js +218 -0
- package/dist/chunk-FBTGIYZS.js.map +1 -0
- package/dist/{chunk-MZVDC6FU.js → chunk-YUE5EM3W.js} +76 -10
- package/dist/chunk-YUE5EM3W.js.map +1 -0
- package/dist/elements/index.cjs +217 -0
- package/dist/elements/index.cjs.map +1 -1
- package/dist/elements/index.d.cts +15 -16
- package/dist/elements/index.d.ts +15 -16
- package/dist/elements/index.js +1 -1
- package/dist/guards-DPHXfpY8.d.cts +16 -0
- package/dist/guards-qgSeZEU4.d.ts +16 -0
- package/dist/index.cjs +74 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/layout/index.cjs +10 -10
- package/dist/layout/index.cjs.map +1 -1
- package/dist/layout/index.d.cts +3 -3
- package/dist/layout/index.d.ts +3 -3
- package/dist/layout/index.js +10 -10
- package/dist/layout/index.js.map +1 -1
- package/dist/modeling/index.d.cts +3 -3
- package/dist/modeling/index.d.ts +3 -3
- package/dist/{types-hgmLfRA9.d.cts → types-Dfrt0wVs.d.cts} +29 -1
- package/dist/{types-hgmLfRA9.d.ts → types-Dfrt0wVs.d.ts} +29 -1
- package/dist/{types-kI1SiQB4.d.ts → types-rEfHsPr5.d.ts} +1 -1
- package/dist/{types-44yNtMtO.d.cts → types-s2_VvPGf.d.cts} +1 -1
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/xml/index.cjs +74 -8
- package/dist/xml/index.cjs.map +1 -1
- package/dist/xml/index.d.cts +3 -3
- package/dist/xml/index.d.ts +3 -3
- package/dist/xml/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-MZVDC6FU.js.map +0 -1
- package/dist/chunk-OZKTOILD.js +0 -3
- package/dist/chunk-OZKTOILD.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BpmnElementType, d as BpmnElementMeta, e as BpmnElementSize } from './types-
|
|
1
|
+
import { f as BpmnElementType, d as BpmnElementMeta, e as BpmnElementSize } from './types-Dfrt0wVs.cjs';
|
|
2
2
|
|
|
3
3
|
declare const BPMN_ELEMENT_CATALOG: Record<BpmnElementType, BpmnElementMeta>;
|
|
4
4
|
declare function getElementMeta(type: BpmnElementType): BpmnElementMeta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as BpmnElementType, d as BpmnElementMeta, e as BpmnElementSize } from './types-
|
|
1
|
+
import { f as BpmnElementType, d as BpmnElementMeta, e as BpmnElementSize } from './types-Dfrt0wVs.js';
|
|
2
2
|
|
|
3
3
|
declare const BPMN_ELEMENT_CATALOG: Record<BpmnElementType, BpmnElementMeta>;
|
|
4
4
|
declare function getElementMeta(type: BpmnElementType): BpmnElementMeta;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// src/elements/event-subtypes.ts
|
|
2
|
+
var BPMN_EVENT_SUBTYPE_CATALOG = [
|
|
3
|
+
// ── StartEvent subtypes ───────────────────────────────────────────────────────
|
|
4
|
+
{
|
|
5
|
+
baseType: "StartEvent",
|
|
6
|
+
trigger: "timer",
|
|
7
|
+
label: "Start Event (Timer)",
|
|
8
|
+
icon: "Clock3",
|
|
9
|
+
initialData: { trigger: "timer", eventDefinition: { type: "timer" } }
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
baseType: "StartEvent",
|
|
13
|
+
trigger: "message",
|
|
14
|
+
label: "Start Event (Message)",
|
|
15
|
+
icon: "Mail",
|
|
16
|
+
initialData: { trigger: "message", eventDefinition: { type: "message" } }
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
baseType: "StartEvent",
|
|
20
|
+
trigger: "signal",
|
|
21
|
+
label: "Start Event (Signal)",
|
|
22
|
+
icon: "Radio",
|
|
23
|
+
initialData: { trigger: "signal", eventDefinition: { type: "signal" } }
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
baseType: "StartEvent",
|
|
27
|
+
trigger: "conditional",
|
|
28
|
+
label: "Start Event (Conditional)",
|
|
29
|
+
icon: "Filter",
|
|
30
|
+
initialData: { trigger: "conditional", eventDefinition: { type: "conditional" } }
|
|
31
|
+
},
|
|
32
|
+
// ── EndEvent subtypes ─────────────────────────────────────────────────────────
|
|
33
|
+
{
|
|
34
|
+
baseType: "EndEvent",
|
|
35
|
+
trigger: "message",
|
|
36
|
+
label: "End Event (Message)",
|
|
37
|
+
icon: "Mail",
|
|
38
|
+
initialData: { trigger: "message", eventDefinition: { type: "message" } }
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
baseType: "EndEvent",
|
|
42
|
+
trigger: "signal",
|
|
43
|
+
label: "End Event (Signal)",
|
|
44
|
+
icon: "Radio",
|
|
45
|
+
initialData: { trigger: "signal", eventDefinition: { type: "signal" } }
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
baseType: "EndEvent",
|
|
49
|
+
trigger: "error",
|
|
50
|
+
label: "End Event (Error)",
|
|
51
|
+
icon: "AlertTriangle",
|
|
52
|
+
initialData: { trigger: "error", eventDefinition: { type: "error" } }
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
baseType: "EndEvent",
|
|
56
|
+
trigger: "escalation",
|
|
57
|
+
label: "End Event (Escalation)",
|
|
58
|
+
icon: "TrendingUp",
|
|
59
|
+
initialData: { trigger: "escalation", eventDefinition: { type: "escalation" } }
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
baseType: "EndEvent",
|
|
63
|
+
trigger: "terminate",
|
|
64
|
+
label: "End Event (Terminate)",
|
|
65
|
+
icon: "StopCircle",
|
|
66
|
+
initialData: { trigger: "terminate", eventDefinition: { type: "terminate" } }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
baseType: "EndEvent",
|
|
70
|
+
trigger: "compensation",
|
|
71
|
+
label: "End Event (Compensation)",
|
|
72
|
+
icon: "RotateCcw",
|
|
73
|
+
initialData: { trigger: "compensation", eventDefinition: { type: "compensation" } }
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
baseType: "EndEvent",
|
|
77
|
+
trigger: "cancel",
|
|
78
|
+
label: "End Event (Cancel)",
|
|
79
|
+
icon: "XCircle",
|
|
80
|
+
initialData: { trigger: "cancel", eventDefinition: { type: "cancel" } }
|
|
81
|
+
},
|
|
82
|
+
// ── IntermediateCatchEvent subtypes ───────────────────────────────────────────
|
|
83
|
+
{
|
|
84
|
+
baseType: "IntermediateCatchEvent",
|
|
85
|
+
trigger: "timer",
|
|
86
|
+
label: "Catch Event (Timer)",
|
|
87
|
+
icon: "Clock3",
|
|
88
|
+
initialData: { trigger: "timer", eventDefinition: { type: "timer" } }
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
baseType: "IntermediateCatchEvent",
|
|
92
|
+
trigger: "message",
|
|
93
|
+
label: "Catch Event (Message)",
|
|
94
|
+
icon: "Mail",
|
|
95
|
+
initialData: { trigger: "message", eventDefinition: { type: "message" } }
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
baseType: "IntermediateCatchEvent",
|
|
99
|
+
trigger: "signal",
|
|
100
|
+
label: "Catch Event (Signal)",
|
|
101
|
+
icon: "Radio",
|
|
102
|
+
initialData: { trigger: "signal", eventDefinition: { type: "signal" } }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
baseType: "IntermediateCatchEvent",
|
|
106
|
+
trigger: "conditional",
|
|
107
|
+
label: "Catch Event (Conditional)",
|
|
108
|
+
icon: "Filter",
|
|
109
|
+
initialData: { trigger: "conditional", eventDefinition: { type: "conditional" } }
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
baseType: "IntermediateCatchEvent",
|
|
113
|
+
trigger: "link",
|
|
114
|
+
label: "Catch Event (Link)",
|
|
115
|
+
icon: "Link2",
|
|
116
|
+
initialData: { trigger: "link", eventDefinition: { type: "link" } }
|
|
117
|
+
},
|
|
118
|
+
// ── IntermediateThrowEvent subtypes ───────────────────────────────────────────
|
|
119
|
+
{
|
|
120
|
+
baseType: "IntermediateThrowEvent",
|
|
121
|
+
trigger: "message",
|
|
122
|
+
label: "Throw Event (Message)",
|
|
123
|
+
icon: "Mail",
|
|
124
|
+
initialData: { trigger: "message", eventDefinition: { type: "message" } }
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
baseType: "IntermediateThrowEvent",
|
|
128
|
+
trigger: "signal",
|
|
129
|
+
label: "Throw Event (Signal)",
|
|
130
|
+
icon: "Radio",
|
|
131
|
+
initialData: { trigger: "signal", eventDefinition: { type: "signal" } }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
baseType: "IntermediateThrowEvent",
|
|
135
|
+
trigger: "link",
|
|
136
|
+
label: "Throw Event (Link)",
|
|
137
|
+
icon: "Link2",
|
|
138
|
+
initialData: { trigger: "link", eventDefinition: { type: "link" } }
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
baseType: "IntermediateThrowEvent",
|
|
142
|
+
trigger: "escalation",
|
|
143
|
+
label: "Throw Event (Escalation)",
|
|
144
|
+
icon: "TrendingUp",
|
|
145
|
+
initialData: { trigger: "escalation", eventDefinition: { type: "escalation" } }
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
baseType: "IntermediateThrowEvent",
|
|
149
|
+
trigger: "compensation",
|
|
150
|
+
label: "Throw Event (Compensation)",
|
|
151
|
+
icon: "RotateCcw",
|
|
152
|
+
initialData: { trigger: "compensation", eventDefinition: { type: "compensation" } }
|
|
153
|
+
},
|
|
154
|
+
// ── BoundaryEvent subtypes ────────────────────────────────────────────────────
|
|
155
|
+
{
|
|
156
|
+
baseType: "BoundaryEvent",
|
|
157
|
+
trigger: "timer",
|
|
158
|
+
label: "Boundary Event (Timer)",
|
|
159
|
+
icon: "Clock3",
|
|
160
|
+
initialData: { trigger: "timer", eventDefinition: { type: "timer" } }
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
baseType: "BoundaryEvent",
|
|
164
|
+
trigger: "message",
|
|
165
|
+
label: "Boundary Event (Message)",
|
|
166
|
+
icon: "Mail",
|
|
167
|
+
initialData: { trigger: "message", eventDefinition: { type: "message" } }
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
baseType: "BoundaryEvent",
|
|
171
|
+
trigger: "signal",
|
|
172
|
+
label: "Boundary Event (Signal)",
|
|
173
|
+
icon: "Radio",
|
|
174
|
+
initialData: { trigger: "signal", eventDefinition: { type: "signal" } }
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
baseType: "BoundaryEvent",
|
|
178
|
+
trigger: "error",
|
|
179
|
+
label: "Boundary Event (Error)",
|
|
180
|
+
icon: "AlertTriangle",
|
|
181
|
+
initialData: { trigger: "error", eventDefinition: { type: "error" } }
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
baseType: "BoundaryEvent",
|
|
185
|
+
trigger: "escalation",
|
|
186
|
+
label: "Boundary Event (Escalation)",
|
|
187
|
+
icon: "TrendingUp",
|
|
188
|
+
initialData: { trigger: "escalation", eventDefinition: { type: "escalation" } }
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
baseType: "BoundaryEvent",
|
|
192
|
+
trigger: "cancel",
|
|
193
|
+
label: "Boundary Event (Cancel)",
|
|
194
|
+
icon: "XCircle",
|
|
195
|
+
initialData: { trigger: "cancel", eventDefinition: { type: "cancel" } }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
baseType: "BoundaryEvent",
|
|
199
|
+
trigger: "compensation",
|
|
200
|
+
label: "Boundary Event (Compensation)",
|
|
201
|
+
icon: "RotateCcw",
|
|
202
|
+
initialData: { trigger: "compensation", eventDefinition: { type: "compensation" } }
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
baseType: "BoundaryEvent",
|
|
206
|
+
trigger: "conditional",
|
|
207
|
+
label: "Boundary Event (Conditional)",
|
|
208
|
+
icon: "Filter",
|
|
209
|
+
initialData: { trigger: "conditional", eventDefinition: { type: "conditional" } }
|
|
210
|
+
}
|
|
211
|
+
];
|
|
212
|
+
function getEventSubtypesByBase(baseType) {
|
|
213
|
+
return BPMN_EVENT_SUBTYPE_CATALOG.filter((e) => e.baseType === baseType);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export { BPMN_EVENT_SUBTYPE_CATALOG, getEventSubtypesByBase };
|
|
217
|
+
//# sourceMappingURL=chunk-FBTGIYZS.js.map
|
|
218
|
+
//# sourceMappingURL=chunk-FBTGIYZS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/elements/event-subtypes.ts"],"names":[],"mappings":";AAaO,IAAM,0BAAA,GAAsD;AAAA;AAAA,EAEjE;AAAA,IACE,QAAA,EAAU,YAAA;AAAA,IACV,OAAA,EAAS,OAAA;AAAA,IACT,KAAA,EAAO,qBAAA;AAAA,IACP,IAAA,EAAM,QAAA;AAAA,IACN,WAAA,EAAa,EAAE,OAAA,EAAS,OAAA,EAAS,iBAAiB,EAAE,IAAA,EAAM,SAAQ;AAAE,GACtE;AAAA,EACA;AAAA,IACE,QAAA,EAAU,YAAA;AAAA,IACV,OAAA,EAAS,SAAA;AAAA,IACT,KAAA,EAAO,uBAAA;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,WAAA,EAAa,EAAE,OAAA,EAAS,SAAA,EAAW,iBAAiB,EAAE,IAAA,EAAM,WAAU;AAAE,GAC1E;AAAA,EACA;AAAA,IACE,QAAA,EAAU,YAAA;AAAA,IACV,OAAA,EAAS,QAAA;AAAA,IACT,KAAA,EAAO,sBAAA;AAAA,IACP,IAAA,EAAM,O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sourcesContent":["import type { BpmnElementType, EventTrigger, BpmnNodeData } from \"./types\";\n\nexport interface BpmnEventSubtypeEntry {\n baseType: Extract<\n BpmnElementType,\n \"StartEvent\" | \"EndEvent\" | \"IntermediateCatchEvent\" | \"IntermediateThrowEvent\" | \"BoundaryEvent\"\n >;\n trigger: Exclude<EventTrigger, \"none\" | \"multiple\" | \"parallelMultiple\">;\n label: string;\n icon: string;\n initialData: Pick<BpmnNodeData, \"trigger\" | \"eventDefinition\">;\n}\n\nexport const BPMN_EVENT_SUBTYPE_CATALOG: BpmnEventSubtypeEntry[] = [\n // ── StartEvent subtypes ───────────────────────────────────────────────────────\n {\n baseType: \"StartEvent\",\n trigger: \"timer\",\n label: \"Start Event (Timer)\",\n icon: \"Clock3\",\n initialData: { trigger: \"timer\", eventDefinition: { type: \"timer\" } },\n },\n {\n baseType: \"StartEvent\",\n trigger: \"message\",\n label: \"Start Event (Message)\",\n icon: \"Mail\",\n initialData: { trigger: \"message\", eventDefinition: { type: \"message\" } },\n },\n {\n baseType: \"StartEvent\",\n trigger: \"signal\",\n label: \"Start Event (Signal)\",\n icon: \"Radio\",\n initialData: { trigger: \"signal\", eventDefinition: { type: \"signal\" } },\n },\n {\n baseType: \"StartEvent\",\n trigger: \"conditional\",\n label: \"Start Event (Conditional)\",\n icon: \"Filter\",\n initialData: { trigger: \"conditional\", eventDefinition: { type: \"conditional\" } },\n },\n\n // ── EndEvent subtypes ─────────────────────────────────────────────────────────\n {\n baseType: \"EndEvent\",\n trigger: \"message\",\n label: \"End Event (Message)\",\n icon: \"Mail\",\n initialData: { trigger: \"message\", eventDefinition: { type: \"message\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"signal\",\n label: \"End Event (Signal)\",\n icon: \"Radio\",\n initialData: { trigger: \"signal\", eventDefinition: { type: \"signal\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"error\",\n label: \"End Event (Error)\",\n icon: \"AlertTriangle\",\n initialData: { trigger: \"error\", eventDefinition: { type: \"error\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"escalation\",\n label: \"End Event (Escalation)\",\n icon: \"TrendingUp\",\n initialData: { trigger: \"escalation\", eventDefinition: { type: \"escalation\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"terminate\",\n label: \"End Event (Terminate)\",\n icon: \"StopCircle\",\n initialData: { trigger: \"terminate\", eventDefinition: { type: \"terminate\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"compensation\",\n label: \"End Event (Compensation)\",\n icon: \"RotateCcw\",\n initialData: { trigger: \"compensation\", eventDefinition: { type: \"compensation\" } },\n },\n {\n baseType: \"EndEvent\",\n trigger: \"cancel\",\n label: \"End Event (Cancel)\",\n icon: \"XCircle\",\n initialData: { trigger: \"cancel\", eventDefinition: { type: \"cancel\" } },\n },\n\n // ── IntermediateCatchEvent subtypes ───────────────────────────────────────────\n {\n baseType: \"IntermediateCatchEvent\",\n trigger: \"timer\",\n label: \"Catch Event (Timer)\",\n icon: \"Clock3\",\n initialData: { trigger: \"timer\", eventDefinition: { type: \"timer\" } },\n },\n {\n baseType: \"IntermediateCatchEvent\",\n trigger: \"message\",\n label: \"Catch Event (Message)\",\n icon: \"Mail\",\n initialData: { trigger: \"message\", eventDefinition: { type: \"message\" } },\n },\n {\n baseType: \"IntermediateCatchEvent\",\n trigger: \"signal\",\n label: \"Catch Event (Signal)\",\n icon: \"Radio\",\n initialData: { trigger: \"signal\", eventDefinition: { type: \"signal\" } },\n },\n {\n baseType: \"IntermediateCatchEvent\",\n trigger: \"conditional\",\n label: \"Catch Event (Conditional)\",\n icon: \"Filter\",\n initialData: { trigger: \"conditional\", eventDefinition: { type: \"conditional\" } },\n },\n {\n baseType: \"IntermediateCatchEvent\",\n trigger: \"link\",\n label: \"Catch Event (Link)\",\n icon: \"Link2\",\n initialData: { trigger: \"link\", eventDefinition: { type: \"link\" } },\n },\n\n // ── IntermediateThrowEvent subtypes ───────────────────────────────────────────\n {\n baseType: \"IntermediateThrowEvent\",\n trigger: \"message\",\n label: \"Throw Event (Message)\",\n icon: \"Mail\",\n initialData: { trigger: \"message\", eventDefinition: { type: \"message\" } },\n },\n {\n baseType: \"IntermediateThrowEvent\",\n trigger: \"signal\",\n label: \"Throw Event (Signal)\",\n icon: \"Radio\",\n initialData: { trigger: \"signal\", eventDefinition: { type: \"signal\" } },\n },\n {\n baseType: \"IntermediateThrowEvent\",\n trigger: \"link\",\n label: \"Throw Event (Link)\",\n icon: \"Link2\",\n initialData: { trigger: \"link\", eventDefinition: { type: \"link\" } },\n },\n {\n baseType: \"IntermediateThrowEvent\",\n trigger: \"escalation\",\n label: \"Throw Event (Escalation)\",\n icon: \"TrendingUp\",\n initialData: { trigger: \"escalation\", eventDefinition: { type: \"escalation\" } },\n },\n {\n baseType: \"IntermediateThrowEvent\",\n trigger: \"compensation\",\n label: \"Throw Event (Compensation)\",\n icon: \"RotateCcw\",\n initialData: { trigger: \"compensation\", eventDefinition: { type: \"compensation\" } },\n },\n\n // ── BoundaryEvent subtypes ────────────────────────────────────────────────────\n {\n baseType: \"BoundaryEvent\",\n trigger: \"timer\",\n label: \"Boundary Event (Timer)\",\n icon: \"Clock3\",\n initialData: { trigger: \"timer\", eventDefinition: { type: \"timer\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"message\",\n label: \"Boundary Event (Message)\",\n icon: \"Mail\",\n initialData: { trigger: \"message\", eventDefinition: { type: \"message\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"signal\",\n label: \"Boundary Event (Signal)\",\n icon: \"Radio\",\n initialData: { trigger: \"signal\", eventDefinition: { type: \"signal\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"error\",\n label: \"Boundary Event (Error)\",\n icon: \"AlertTriangle\",\n initialData: { trigger: \"error\", eventDefinition: { type: \"error\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"escalation\",\n label: \"Boundary Event (Escalation)\",\n icon: \"TrendingUp\",\n initialData: { trigger: \"escalation\", eventDefinition: { type: \"escalation\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"cancel\",\n label: \"Boundary Event (Cancel)\",\n icon: \"XCircle\",\n initialData: { trigger: \"cancel\", eventDefinition: { type: \"cancel\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"compensation\",\n label: \"Boundary Event (Compensation)\",\n icon: \"RotateCcw\",\n initialData: { trigger: \"compensation\", eventDefinition: { type: \"compensation\" } },\n },\n {\n baseType: \"BoundaryEvent\",\n trigger: \"conditional\",\n label: \"Boundary Event (Conditional)\",\n icon: \"Filter\",\n initialData: { trigger: \"conditional\", eventDefinition: { type: \"conditional\" } },\n },\n];\n\n/** Group subtype entries by their base element type. */\nexport function getEventSubtypesByBase(\n baseType: BpmnEventSubtypeEntry[\"baseType\"],\n): BpmnEventSubtypeEntry[] {\n return BPMN_EVENT_SUBTYPE_CATALOG.filter((e) => e.baseType === baseType);\n}\n"]}
|
|
@@ -32,6 +32,24 @@ var ARANZA_DESCRIPTOR = {
|
|
|
32
32
|
{ name: "skipExpression", isAttr: true, type: "String" },
|
|
33
33
|
{ name: "businessCalendarName", isAttr: true, type: "String" }
|
|
34
34
|
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
// BusinessRuleTask: simplified inline decision table (JSON-serialized)
|
|
38
|
+
name: "InlineDecision",
|
|
39
|
+
superClass: ["Element"],
|
|
40
|
+
properties: [
|
|
41
|
+
{ name: "hitPolicy", isAttr: true, type: "String" },
|
|
42
|
+
{ name: "tableJson", isAttr: true, type: "String" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
// MessageFlow: payload schema + correlation key for executable BPMN
|
|
47
|
+
name: "MessageFlowConfig",
|
|
48
|
+
superClass: ["Element"],
|
|
49
|
+
properties: [
|
|
50
|
+
{ name: "payloadSchema", isAttr: true, type: "String" },
|
|
51
|
+
{ name: "correlationKey", isAttr: true, type: "String" }
|
|
52
|
+
]
|
|
35
53
|
}
|
|
36
54
|
],
|
|
37
55
|
enumerations: [],
|
|
@@ -321,7 +339,20 @@ function extractAranzaExtensions(el) {
|
|
|
321
339
|
}
|
|
322
340
|
const ext = el.extensionElements;
|
|
323
341
|
if (!ext) return result;
|
|
324
|
-
const
|
|
342
|
+
const extValues = asElements(ext.values);
|
|
343
|
+
const inlineDecision = extValues.find((v) => v.$type === "aranza:InlineDecision");
|
|
344
|
+
if (inlineDecision) {
|
|
345
|
+
const hitPolicy = asString(inlineDecision.hitPolicy) ?? "UNIQUE";
|
|
346
|
+
const tableJson = asString(inlineDecision.tableJson);
|
|
347
|
+
if (tableJson) {
|
|
348
|
+
try {
|
|
349
|
+
const parsed = JSON.parse(tableJson);
|
|
350
|
+
result.inlineDecisionTable = { hitPolicy, ...parsed };
|
|
351
|
+
} catch {
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
const taskConfig = extValues.find((v) => v.$type === "aranza:TaskConfig");
|
|
325
356
|
if (!taskConfig) return result;
|
|
326
357
|
const priority = asString(taskConfig.priority);
|
|
327
358
|
if (priority === "critical" || priority === "high" || priority === "medium" || priority === "low") {
|
|
@@ -479,12 +510,26 @@ function buildEdge(el, edgeType, ctx, edges) {
|
|
|
479
510
|
const condExpr = el.conditionExpression;
|
|
480
511
|
const rawDir = asString(el.associationDirection);
|
|
481
512
|
const associationDirection = edgeType === "association" && rawDir ? rawDir.toLowerCase() : void 0;
|
|
513
|
+
let payloadSchema;
|
|
514
|
+
let correlationKey;
|
|
515
|
+
if (edgeType === "messageFlow") {
|
|
516
|
+
const mfExt = el.extensionElements;
|
|
517
|
+
if (mfExt) {
|
|
518
|
+
const mfConfig = asElements(mfExt.values).find((v) => v.$type === "aranza:MessageFlowConfig");
|
|
519
|
+
if (mfConfig) {
|
|
520
|
+
payloadSchema = asString(mfConfig.payloadSchema) || void 0;
|
|
521
|
+
correlationKey = asString(mfConfig.correlationKey) || void 0;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
482
525
|
const data = {
|
|
483
526
|
edgeType,
|
|
484
527
|
...label ? { label } : {},
|
|
485
528
|
...documentation ? { documentation } : {},
|
|
486
529
|
...condExpr?.body ? { conditionExpression: condExpr.body } : {},
|
|
487
|
-
...associationDirection ? { associationDirection } : {}
|
|
530
|
+
...associationDirection ? { associationDirection } : {},
|
|
531
|
+
...payloadSchema ? { payloadSchema } : {},
|
|
532
|
+
...correlationKey ? { correlationKey } : {}
|
|
488
533
|
};
|
|
489
534
|
const waypoints = ctx.waypoints.get(id);
|
|
490
535
|
if (waypoints?.length) data.routingPoints = waypoints;
|
|
@@ -771,8 +816,19 @@ function buildAranzaExtensionElements(moddle, node) {
|
|
|
771
816
|
if (dueDate) configAttrs.dueDate = dueDate;
|
|
772
817
|
if (skipExpression) configAttrs.skipExpression = skipExpression;
|
|
773
818
|
if (businessCalendarName) configAttrs.businessCalendarName = businessCalendarName;
|
|
774
|
-
const
|
|
775
|
-
|
|
819
|
+
const values = [moddle.create("aranza:TaskConfig", configAttrs)];
|
|
820
|
+
const inlineDecisionTable = node.data.inlineDecisionTable;
|
|
821
|
+
if (inlineDecisionTable && typeof inlineDecisionTable === "object") {
|
|
822
|
+
const tbl = inlineDecisionTable;
|
|
823
|
+
const { hitPolicy, ...rest } = tbl;
|
|
824
|
+
values.push(
|
|
825
|
+
moddle.create("aranza:InlineDecision", {
|
|
826
|
+
hitPolicy: hitPolicy ?? "UNIQUE",
|
|
827
|
+
tableJson: JSON.stringify(rest)
|
|
828
|
+
})
|
|
829
|
+
);
|
|
830
|
+
}
|
|
831
|
+
return moddle.create("bpmn:ExtensionElements", { values });
|
|
776
832
|
}
|
|
777
833
|
var ARTIFACT_ELEMENT_TYPES = /* @__PURE__ */ new Set(["Annotation", "Group"]);
|
|
778
834
|
function buildSemanticModel(moddle, nodes, edges, opts) {
|
|
@@ -809,14 +865,24 @@ function buildSemanticModel(moddle, nodes, edges, opts) {
|
|
|
809
865
|
}
|
|
810
866
|
const messageFlowEdges = edges.filter((e) => e.data?.edgeType === "messageFlow");
|
|
811
867
|
const conversationLinkEdges = edges.filter((e) => e.data?.edgeType === "conversationLink");
|
|
812
|
-
const messageFlows = messageFlowEdges.map(
|
|
813
|
-
|
|
868
|
+
const messageFlows = messageFlowEdges.map((e) => {
|
|
869
|
+
const ps = typeof e.data?.payloadSchema === "string" ? e.data.payloadSchema : void 0;
|
|
870
|
+
const ck = typeof e.data?.correlationKey === "string" ? e.data.correlationKey : void 0;
|
|
871
|
+
const mfAttrs = {
|
|
814
872
|
id: e.id,
|
|
815
873
|
name: e.data?.label ?? "",
|
|
816
874
|
sourceRef: { id: e.source },
|
|
817
875
|
targetRef: { id: e.target }
|
|
818
|
-
}
|
|
819
|
-
|
|
876
|
+
};
|
|
877
|
+
if (ps || ck) {
|
|
878
|
+
const cfg = moddle.create("aranza:MessageFlowConfig", {
|
|
879
|
+
...ps ? { payloadSchema: ps } : {},
|
|
880
|
+
...ck ? { correlationKey: ck } : {}
|
|
881
|
+
});
|
|
882
|
+
mfAttrs.extensionElements = moddle.create("bpmn:ExtensionElements", { values: [cfg] });
|
|
883
|
+
}
|
|
884
|
+
return moddle.create("bpmn:MessageFlow", mfAttrs);
|
|
885
|
+
});
|
|
820
886
|
const conversationLinks = conversationLinkEdges.map(
|
|
821
887
|
(e) => moddle.create("bpmn:ConversationLink", {
|
|
822
888
|
id: e.id,
|
|
@@ -1209,5 +1275,5 @@ async function serializeBpmnXml(nodes, edges, opts = {}) {
|
|
|
1209
1275
|
}
|
|
1210
1276
|
|
|
1211
1277
|
export { parseBpmnXml, serializeBpmnXml };
|
|
1212
|
-
//# sourceMappingURL=chunk-
|
|
1213
|
-
//# sourceMappingURL=chunk-
|
|
1278
|
+
//# sourceMappingURL=chunk-YUE5EM3W.js.map
|
|
1279
|
+
//# sourceMappingURL=chunk-YUE5EM3W.js.map
|