@bpmn-nova/studio 0.3.9-preview → 0.4.1

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 (79) hide show
  1. package/README.md +2 -2
  2. package/dist/canvas.js +97 -25
  3. package/dist/config.js +13 -0
  4. package/dist/context-menu.js +41 -32
  5. package/dist/controller.js +45 -19
  6. package/dist/flow-tree.d.ts +4 -0
  7. package/dist/flow-tree.js +14 -0
  8. package/dist/index.d.ts +47 -2
  9. package/dist/index.js +1 -0
  10. package/dist/interactions.js +6 -1
  11. package/dist/modules/bpmn-model/index.d.ts +2 -1
  12. package/dist/modules/bpmn-model/index.js +12 -10
  13. package/dist/modules/core/gateway.js +16 -13
  14. package/dist/modules/core/index.d.ts +6 -4
  15. package/dist/modules/core/model.js +12 -7
  16. package/dist/modules/designer/index.d.ts +5 -1
  17. package/dist/modules/designer/index.js +36 -15
  18. package/dist/modules/export-svg/index.d.ts +12 -5
  19. package/dist/modules/export-svg/preview.js +34 -24
  20. package/dist/modules/export-svg/render.js +102 -50
  21. package/dist/modules/flow-tree/controller.js +364 -0
  22. package/dist/modules/flow-tree/index.d.ts +248 -0
  23. package/dist/modules/flow-tree/index.js +5 -0
  24. package/dist/modules/flow-tree/operations.js +484 -0
  25. package/dist/modules/flow-tree/sample.js +445 -0
  26. package/dist/modules/flow-tree/schema.js +588 -0
  27. package/dist/modules/flow-tree/validate.js +125 -0
  28. package/dist/modules/flow-tree-bpmn/compiler.js +547 -0
  29. package/dist/modules/flow-tree-bpmn/decompiler.js +524 -0
  30. package/dist/modules/flow-tree-bpmn/expression.js +135 -0
  31. package/dist/modules/flow-tree-bpmn/index.d.ts +53 -0
  32. package/dist/modules/flow-tree-bpmn/index.js +14 -0
  33. package/dist/modules/flow-tree-renderer/canvas.js +1003 -0
  34. package/dist/modules/flow-tree-renderer/export-svg.js +325 -0
  35. package/dist/modules/flow-tree-renderer/index.d.ts +143 -0
  36. package/dist/modules/flow-tree-renderer/index.js +3 -0
  37. package/dist/modules/flow-tree-renderer/shell.js +970 -0
  38. package/dist/modules/i18n/index.d.ts +647 -0
  39. package/dist/modules/i18n/index.js +247 -0
  40. package/dist/modules/i18n/locales/en-US.js +1222 -0
  41. package/dist/modules/i18n/locales/zh-CN.js +1204 -0
  42. package/dist/modules/icons/index.js +23 -0
  43. package/dist/modules/node-presentation/index.d.ts +3 -2
  44. package/dist/modules/node-presentation/index.js +14 -11
  45. package/dist/modules/palette/index.d.ts +6 -1
  46. package/dist/modules/palette/index.js +26 -8
  47. package/dist/modules/palette/panel.js +44 -6
  48. package/dist/modules/properties/index.d.ts +2 -1
  49. package/dist/modules/properties/index.js +2 -2
  50. package/dist/modules/properties-activiti/index.js +84 -59
  51. package/dist/modules/properties-bpmn/index.js +151 -128
  52. package/dist/modules/properties-core/index.d.ts +9 -3
  53. package/dist/modules/properties-core/index.js +16 -4
  54. package/dist/modules/properties-flow-tree/index.d.ts +56 -0
  55. package/dist/modules/properties-flow-tree/index.js +2 -0
  56. package/dist/modules/properties-flow-tree/panel.js +1136 -0
  57. package/dist/modules/properties-flow-tree/widgets.js +625 -0
  58. package/dist/modules/properties-flowable/index.js +55 -34
  59. package/dist/modules/properties-renderer/index.d.ts +5 -1
  60. package/dist/modules/properties-renderer/index.js +110 -42
  61. package/dist/modules/renderer-svg/index.d.ts +6 -2
  62. package/dist/modules/renderer-svg/index.js +113 -38
  63. package/dist/modules/runtime/index.d.ts +33 -5
  64. package/dist/modules/runtime/index.js +97 -73
  65. package/dist/modules/runtime/time.js +89 -4
  66. package/dist/modules/runtime/visits.js +6 -4
  67. package/dist/modules/theme/index.d.ts +5 -2
  68. package/dist/modules/theme/index.js +8 -4
  69. package/dist/modules/viewer/index.d.ts +28 -7
  70. package/dist/modules/viewer/index.js +223 -58
  71. package/dist/modules/viewer/runtime-content.js +26 -20
  72. package/dist/modules/viewer/runtime-trace.js +43 -25
  73. package/dist/modules/viewer/timeline.js +103 -36
  74. package/dist/shell.js +258 -75
  75. package/dist/sidebars.js +3 -1
  76. package/dist/styles.css +2371 -2
  77. package/llms-full.txt +586 -47
  78. package/llms.txt +6 -5
  79. package/package.json +7 -3
@@ -0,0 +1,1222 @@
1
+ function pluralizeEnglishPhrase(phrase) {
2
+ const source = String(phrase || '').trim();
3
+ if (!source) return 'items';
4
+ if (source.includes(' / ')) {
5
+ return source.split(' / ').map(pluralizeEnglishPhrase).join(' / ');
6
+ }
7
+ const lower = source.toLowerCase();
8
+ if (lower.endsWith('process')) return `${lower}es`;
9
+ if (/(?:s|sh|ch|x|z)$/.test(lower)) return `${lower}es`;
10
+ if (/[^aeiou]y$/.test(lower)) return `${lower.slice(0, -1)}ies`;
11
+ return `${lower}s`;
12
+ }
13
+
14
+ export const enUS = {
15
+ common: {
16
+ listSeparator: ', ',
17
+ issueSeparator: '; ',
18
+ },
19
+ elementTypes: {
20
+ startEvent: 'Start Event',
21
+ messageStartEvent: 'Message Start',
22
+ timerStartEvent: 'Timer Start',
23
+ conditionalStartEvent: 'Conditional Start',
24
+ signalStartEvent: 'Signal Start',
25
+ errorStartEvent: 'Error Start',
26
+ escalationStartEvent: 'Escalation Start',
27
+ compensationStartEvent: 'Compensation Start',
28
+
29
+ intermediateCatchEvent: 'Intermediate Catch Event',
30
+ messageIntermediateCatchEvent: 'Message Catch',
31
+ timerIntermediateCatchEvent: 'Timer Catch',
32
+ conditionalIntermediateCatchEvent: 'Conditional Catch',
33
+ signalIntermediateCatchEvent: 'Signal Catch',
34
+ linkIntermediateCatchEvent: 'Link Catch',
35
+ intermediateThrowEvent: 'Intermediate Throw Event',
36
+ messageIntermediateThrowEvent: 'Message Throw',
37
+ escalationIntermediateThrowEvent: 'Escalation Throw',
38
+ signalIntermediateThrowEvent: 'Signal Throw',
39
+ linkIntermediateThrowEvent: 'Link Throw',
40
+ compensationIntermediateThrowEvent: 'Compensation Throw',
41
+
42
+ timerBoundaryEvent: 'Timer Boundary Event',
43
+ messageBoundaryEvent: 'Message Boundary Event',
44
+ errorBoundaryEvent: 'Error Boundary Event',
45
+ escalationBoundaryEvent: 'Escalation Boundary Event',
46
+ signalBoundaryEvent: 'Signal Boundary Event',
47
+ conditionalBoundaryEvent: 'Conditional Boundary Event',
48
+ compensationBoundaryEvent: 'Compensation Boundary Event',
49
+
50
+ endEvent: 'End Event',
51
+ messageEndEvent: 'Message End',
52
+ errorEndEvent: 'Error End',
53
+ escalationEndEvent: 'Escalation End',
54
+ cancelEndEvent: 'Cancel End',
55
+ compensationEndEvent: 'Compensation End',
56
+ signalEndEvent: 'Signal End',
57
+ terminateEndEvent: 'Terminate End',
58
+
59
+ task: 'Task',
60
+ userTask: 'User Task',
61
+ manualTask: 'Manual Task',
62
+ serviceTask: 'Service Task',
63
+ scriptTask: 'Script Task',
64
+ businessRuleTask: 'Business Rule Task',
65
+ sendTask: 'Send Task',
66
+ receiveTask: 'Receive Task',
67
+ callActivity: 'Call Activity',
68
+ subProcess: 'Sub-Process',
69
+ eventSubProcess: 'Event Sub-Process',
70
+ transaction: 'Transaction',
71
+ adHocSubProcess: 'Ad-Hoc Sub-Process',
72
+
73
+ exclusiveGateway: 'Exclusive Gateway',
74
+ parallelGateway: 'Parallel Gateway',
75
+ inclusiveGateway: 'Inclusive Gateway',
76
+ eventBasedGateway: 'Event-Based Gateway',
77
+ complexGateway: 'Complex Gateway',
78
+
79
+ dataObjectReference: 'Data Object',
80
+ dataStoreReference: 'Data Store',
81
+ textAnnotation: 'Text Annotation',
82
+ group: 'Group',
83
+ participant: 'Participant / Pool',
84
+ lane: 'Lane',
85
+ generic: 'BPMN Node',
86
+
87
+ parallelDiverging: 'Parallel Split',
88
+ parallelConverging: 'Parallel Join',
89
+ },
90
+ edgeTypes: {
91
+ sequenceFlow: 'Sequence Flow',
92
+ messageFlow: 'Message Flow',
93
+ association: 'Association',
94
+ },
95
+ actions: {
96
+ submit: 'Submit',
97
+ approve: 'Approve',
98
+ reject: 'Reject',
99
+ return: 'Return',
100
+ 'add-sign': 'Add Signer',
101
+ transfer: 'Transfer',
102
+ delegate: 'Delegate',
103
+ withdraw: 'Withdraw',
104
+ comment: 'Comment',
105
+ skip: 'Skip',
106
+ cancel: 'Cancel',
107
+ default: 'Approval Action',
108
+ },
109
+ shell: {
110
+ modeAria: 'Studio mode',
111
+ modes: {
112
+ design: 'Design',
113
+ viewer: 'Preview',
114
+ instance: 'Trace',
115
+ },
116
+ modeSwitchTo: ({ label }) => `Switch to ${label}`,
117
+ projectionAria: 'Approval trace view',
118
+ projections: {
119
+ approval: 'Effective Path',
120
+ standard: 'Full BPMN',
121
+ compact: 'Timeline',
122
+ },
123
+ tools: {
124
+ undo: 'Undo Ctrl/⌘+Z',
125
+ redo: 'Redo Ctrl/⌘+Y',
126
+ beautify: 'Beautify',
127
+ beautifyTitle: 'Arrange nodes and edges with current settings',
128
+ beautifyStrategyTitle: 'Choose layout strategy',
129
+ beautifyMenuTitle: 'Layout Strategy',
130
+ validate: 'Validate',
131
+ validateTitle: 'Validate process structure',
132
+ import: 'Import',
133
+ importTitle: 'Import BPMN XML',
134
+ export: 'Export',
135
+ exportTitle: 'Export current content',
136
+ exportSvg: 'Export SVG',
137
+ exportSvgHint: 'Preview before downloading',
138
+ exportBpmn: 'Export BPMN',
139
+ exportBpmnHint: 'Download process XML',
140
+ },
141
+ density: {
142
+ compact: 'Compact',
143
+ balanced: 'Balanced',
144
+ spacious: 'Spacious',
145
+ },
146
+ beautifyActions: {
147
+ horizontal: 'Horizontal Auto Layout',
148
+ horizontalHint: 'Rearrange along horizontal flow direction',
149
+ vertical: 'Vertical Auto Layout',
150
+ verticalHint: 'Rearrange by vertical approval levels',
151
+ routing: 'Recalculate Rounded Edges',
152
+ routingHint: 'Keep node positions and reroute edges',
153
+ smooth: 'Smooth Curved Edges',
154
+ smoothHint: 'Keep node positions with smoother curves',
155
+ },
156
+ canvasHead: {
157
+ editingMode: 'Edit Mode',
158
+ back: 'Back',
159
+ backToParent: ({ name }) => `Back to parent: ${name}`,
160
+ scopeNavAria: 'Process scope path',
161
+ backToScope: ({ name }) => `Return to ${name}`,
162
+ },
163
+ viewport: {
164
+ zoomOut: 'Zoom out',
165
+ zoomIn: 'Zoom in',
166
+ actualSize: '100% actual size',
167
+ fitView: 'Fit view',
168
+ },
169
+ sidebar: {
170
+ toggle: ({ collapsed, side }) => `${collapsed ? 'Expand' : 'Collapse'} ${side === 'left' ? 'left palette panel' : 'right panel'}`,
171
+ },
172
+ status: {
173
+ ready: 'Ready',
174
+ graphSummary: ({ nodes, edges }) => `${nodes} ${nodes === 1 ? 'node' : 'nodes'} · ${edges} ${edges === 1 ? 'edge' : 'edges'}`,
175
+ viewerReadonly: 'Process Preview · Read-Only',
176
+ traceTimeline: 'Approval Trace · Timeline',
177
+ traceStandard: 'Approval Trace · Full BPMN',
178
+ traceApproval: 'Approval Trace · Effective Path',
179
+ importedBpmn: 'BPMN file imported',
180
+ importFailed: ({ message }) => `Import failed: ${message}`,
181
+ exportedBpmn: 'BPMN file exported',
182
+ exportedSvg: ({ filename }) => `SVG exported: ${filename}`,
183
+ validationPassed: 'Validation passed: process structure is valid',
184
+ validationSummary: ({ summary }) => `Validation complete: ${summary}`,
185
+ errorCount: ({ count }) => count === 1 ? '1 error' : `${count} errors`,
186
+ warningCount: ({ count }) => count === 1 ? '1 warning' : `${count} warnings`,
187
+ },
188
+ errors: {
189
+ svgExportUnsupported: 'SVG export is not supported in the current view.',
190
+ },
191
+ exportSvgPreviewTitle: ({ label }) => `Export ${label} SVG`,
192
+ readonlyDetails: {
193
+ edgeFallbackTitle: 'Sequence Flow',
194
+ traceBadge: 'Trace',
195
+ readonlyBadge: 'Read-only',
196
+ currentStatus: 'Status',
197
+ participants: 'Participants',
198
+ round: 'Round',
199
+ roundValue: ({ round }) => `Round ${round}`,
200
+ latestAction: 'Latest Action',
201
+ elementType: 'Element Type',
202
+ bpmnType: 'BPMN Type',
203
+ name: 'Name',
204
+ elementId: 'Element ID',
205
+ source: 'Source',
206
+ target: 'Target',
207
+ condition: 'Condition',
208
+ processName: 'Process Name',
209
+ engine: 'Workflow Engine',
210
+ nodeCount: 'Nodes',
211
+ edgeCount: 'Edges',
212
+ },
213
+ },
214
+ palette: {
215
+ groups: {
216
+ favorites: 'Common',
217
+ startEvents: 'Start Events',
218
+ intermediateEvents: 'Intermediate Events',
219
+ boundaryEvents: 'Boundary Events',
220
+ endEvents: 'End Events',
221
+ tasks: 'Tasks',
222
+ activities: 'Activities / Sub-Processes',
223
+ gateways: 'Gateways',
224
+ data: 'Data',
225
+ artifacts: 'Annotations / Groups',
226
+ collaboration: 'Collaboration / Swimlanes',
227
+ },
228
+ parallelDivergingDesc: 'Start multiple parallel paths',
229
+ parallelConvergingDesc: 'Wait for all incoming parallel paths',
230
+ itemUnavailable: 'This node type is currently unavailable',
231
+ },
232
+ contextMenu: {
233
+ ariaLabel: 'Canvas context menu',
234
+ groups: {
235
+ align: 'Align',
236
+ distribute: 'Distribute',
237
+ pointer: 'Pointer Mode',
238
+ },
239
+ actions: {
240
+ canvasFit: 'Fit View',
241
+ canvasBeautify: 'Beautify Process',
242
+ canvasReroute: 'Optimize All Edges',
243
+ pointerSelect: 'Select',
244
+ pointerMarquee: 'Marquee',
245
+ pointerPan: 'Pan',
246
+ nodeQuickAdd: 'Quick Add Next Node',
247
+ nodeConnect: 'Connect to Existing Node',
248
+ nodeEnterScope: 'Enter Sub-Process',
249
+ nodeUngroup: 'Ungroup',
250
+ nodeDelete: 'Delete Node',
251
+ edgeRename: 'Edit Edge Label',
252
+ edgeResetRoute: 'Reset Auto Route',
253
+ edgeLocateSource: 'Locate Source',
254
+ edgeLocateTarget: 'Locate Target',
255
+ edgeDelete: 'Delete Edge',
256
+ alignLeft: 'Align Left',
257
+ alignCenterX: 'Align Horizontal Center',
258
+ alignRight: 'Align Right',
259
+ alignTop: 'Align Top',
260
+ alignCenterY: 'Align Vertical Center',
261
+ alignBottom: 'Align Bottom',
262
+ selectionGroup: 'Create Group',
263
+ distributeHorizontal: 'Distribute Horizontally',
264
+ distributeVertical: 'Distribute Vertically',
265
+ selectionLayout: 'Beautify Selection',
266
+ selectionReroute: 'Optimize Connected Edges',
267
+ selectionFit: 'Fit Selection',
268
+ selectionDelete: 'Delete Selection',
269
+ },
270
+ },
271
+ canvas: {
272
+ pointerToolbarAria: 'Canvas interaction mode',
273
+ pointerModes: {
274
+ select: 'Select',
275
+ selectTitle: 'Select and move nodes',
276
+ marquee: 'Marquee',
277
+ marqueeTitle: 'Drag on canvas to box-select nodes',
278
+ pan: 'Pan',
279
+ panTitle: 'Pan the canvas',
280
+ },
281
+ selectionToolbarAria: 'Selection layout toolbar',
282
+ selectionActions: {
283
+ group: 'Group',
284
+ align: 'Align selection',
285
+ distribute: 'Distribute selection',
286
+ layout: 'Beautify selection',
287
+ reroute: 'Optimize selection edges',
288
+ fit: 'Fit selection',
289
+ },
290
+ emptySubProcessTitle: 'Empty Sub-Process',
291
+ emptySubProcessHint: 'Drop nodes here or add a start event',
292
+ edgePlaceholder: 'Set branch label',
293
+ edgeInputPlaceholder: 'Enter branch label',
294
+ ports: {
295
+ connectToNode: 'Connect to this node',
296
+ createConnection: 'Create connection',
297
+ incomingPort: 'Incoming port',
298
+ },
299
+ resizeLaneDivider: 'Resize adjacent lane height',
300
+ nodeActions: {
301
+ enterSubProcess: 'Enter sub-process',
302
+ quickAdd: 'Quick add next node',
303
+ cancelConnect: 'Cancel connect mode (Esc)',
304
+ connectExisting: 'Connect to existing node',
305
+ ungroup: 'Ungroup',
306
+ deleteNode: 'Delete node',
307
+ },
308
+ connectHint: 'Select target node · Esc to cancel',
309
+ quickMenu: {
310
+ title: 'Add Next Node',
311
+ subtitle: 'Auto-connect and smart placement',
312
+ close: 'Close',
313
+ searchPlaceholder: 'Search BPMN nodes…',
314
+ },
315
+ gatewayRoleBadge: {
316
+ diverging: 'Fork',
317
+ converging: 'Join',
318
+ ambiguous: '?',
319
+ },
320
+ gatewayRoleStatus: {
321
+ valid: 'Valid',
322
+ incomplete: 'Incomplete',
323
+ conflict: 'Conflict',
324
+ ambiguous: 'Undetermined',
325
+ },
326
+ gatewayRoleTitle: ({ role, status }) => `${role} · ${status}`,
327
+ runtimeTransitionAria: ({ label }) => label,
328
+ runtimeTransitionAriaWithOperator: ({ label, operator }) => `${label}, operator: ${operator}`,
329
+ viewRuntimeDetailsAria: ({ name, status }) => `View approval details for ${name}, status: ${status}`,
330
+ defaultAnnotationCaption: 'Note',
331
+ defaultGroupCaption: 'Group',
332
+ defaultSubtitles: {
333
+ userTask: 'Assignee not configured',
334
+ serviceTask: 'Implementation not configured',
335
+ callActivity: 'Called process not configured',
336
+ receiveTask: 'Waiting for message or trigger',
337
+ manualTask: 'Manual offline task',
338
+ subProcess: 'Collapsible sub-process',
339
+ eventSubProcess: 'Event-triggered sub-process',
340
+ transaction: 'Transaction boundary',
341
+ },
342
+ },
343
+ modeling: {
344
+ nodeLimitExceeded: ({ max, label }) => {
345
+ const singular = String(label || 'node').toLowerCase();
346
+ return max === 1
347
+ ? `At most 1 ${singular}`
348
+ : `At most ${max} ${pluralizeEnglishPhrase(label)}`;
349
+ },
350
+ nodeLimitReached: ({ label }) => `Maximum limit reached for ${pluralizeEnglishPhrase(label)}`,
351
+ branchName: ({ index }) => `Branch ${index}`,
352
+ defaultGroupCategory: 'Group',
353
+ defaultProcessName: 'Untitled Process',
354
+ defaultAnnotationText: 'Annotation text',
355
+ },
356
+ validation: {
357
+ missingStartEvent: 'The process must contain at least one start event.',
358
+ missingEndEvent: 'At least one end event is recommended.',
359
+ invalidSubProcessScope: 'Node references a missing or invalid sub-process scope.',
360
+ edgeMissingNode: 'Edge references a missing node.',
361
+ edgeCrossScope: 'Edge cannot cross process or sub-process scopes.',
362
+ sequenceFlowSelfLoop: 'A sequence flow cannot connect a node to itself.',
363
+ serviceTaskMissingImpl: ({ name }) => `${name}: Service task has no implementation configured.`,
364
+ userTaskMissingAssignee: ({ name }) => `${name}: User task has no assignee or candidate configured.`,
365
+ boundaryMissingTarget: ({ name }) => `${name}: Boundary event is not attached to an activity.`,
366
+ gatewayNeedsTwoOutgoing: ({ name }) => `${name}: Gateways typically require at least two outgoing flows.`,
367
+ gatewayBranchNeedsName: ({ name }) => `${name}: Naming each branch is recommended for approval display and runtime tracing.`,
368
+ timerMissingExpression: ({ name }) => `${name}: Timer event has no timer expression configured.`,
369
+ nodeIssue: ({ name, message }) => `${name}: ${message}`,
370
+ parallelGateway: {
371
+ convergingMinIncoming: 'A parallel join requires at least two incoming flows.',
372
+ convergingSingleOutgoing: 'A parallel join should typically have only one outgoing flow.',
373
+ divergingSingleIncoming: 'A parallel split should typically have only one incoming flow.',
374
+ divergingMinOutgoing: 'A parallel split requires at least two outgoing flows.',
375
+ mixedNotAllowed: 'Parallel gateway has multiple incoming and outgoing flows; consider splitting into join and split gateways.',
376
+ ambiguousTopology: 'Not enough connected flows to determine whether this is a parallel split or join.',
377
+ noConditionAllowed: 'Outgoing flows from a parallel gateway should not define condition expressions.',
378
+ noDefaultAllowed: 'Parallel gateways do not support default outgoing flows.',
379
+ },
380
+ import: {
381
+ xmlParseFailed: ({ detail }) => `Failed to parse BPMN XML: ${detail}`,
382
+ missingProcessElement: 'Missing <process> element.',
383
+ },
384
+ },
385
+ properties: {
386
+ empty: 'Select an element to view properties',
387
+ profileAria: 'Properties view',
388
+ profiles: {
389
+ business: 'Business',
390
+ developer: 'Developer',
391
+ },
392
+ header: {
393
+ none: 'No Element Selected',
394
+ multiSelected: ({ count }) => count === 1 ? '1 element selected' : `${count} elements selected`,
395
+ process: 'Process & Canvas',
396
+ association: 'Association',
397
+ sequenceFlow: 'Branch Flow',
398
+ unnamedElement: 'Unnamed Element',
399
+ },
400
+ multiSummary: {
401
+ title: 'Multi-Selection Layout',
402
+ description: 'Use the floating canvas toolbar to align, distribute, or beautify the selection.',
403
+ fitSelection: 'Fit Selection',
404
+ kinds: {
405
+ task: 'Tasks',
406
+ event: 'Events',
407
+ gateway: 'Gateways',
408
+ container: 'Sub-Processes',
409
+ boundary: 'Boundary Events',
410
+ other: 'Other',
411
+ },
412
+ },
413
+ controls: {
414
+ selectLabel: 'Select',
415
+ selectPlaceholder: 'Select an option',
416
+ selectEmpty: 'No options available',
417
+ selectAria: ({ label, value }) => `${label}: ${value}`,
418
+ switchOn: 'On',
419
+ switchOff: 'Off',
420
+ defaultAction: 'Run',
421
+ tagsHint: 'Separate multiple values with commas; expressions are also supported.',
422
+ smartSelectPlaceholder: 'Select or enter a value',
423
+ nodeFallbackType: 'Process Node',
424
+ locateNodeAria: ({ label }) => `Locate node: ${label}`,
425
+ emptyNodeList: 'No referenced nodes',
426
+ unconnected: 'Unconnected',
427
+ emptyFlowList: 'No flows',
428
+ removeRow: 'Delete',
429
+ emptyTable: 'No items configured',
430
+ addRow: ({ label }) => `Add ${label}`,
431
+ defaultRowLabel: 'Item',
432
+ },
433
+ branchList: {
434
+ title: ({ index }) => `Branch ${index}`,
435
+ locate: 'Locate',
436
+ nameLabel: 'Branch Name',
437
+ namePlaceholder: 'e.g., Purchase Approval',
438
+ conditionLabel: 'Condition Expression',
439
+ defaultFlow: 'Default Flow',
440
+ targetLabel: 'Target',
441
+ empty: 'No outgoing branches on this gateway',
442
+ },
443
+ validators: {
444
+ idRequired: 'ID is required',
445
+ idInvalid: 'ID may only contain letters, digits, _, -, and ., and cannot start with a digit',
446
+ idDuplicate: 'ID already exists; BPMN Element IDs must be unique within Definitions',
447
+ },
448
+ bpmn: {
449
+ basicGroup: 'General',
450
+ branchDefGroup: 'Branch Definition',
451
+ edgeInfoGroup: 'Edge Info',
452
+ processName: 'Process Name',
453
+ processIdNote: 'Used as processDefinitionKey when deployed to the workflow engine.',
454
+ executable: 'Executable Process',
455
+ engine: 'Workflow Engine',
456
+ name: 'Name',
457
+ edgeNamePlaceholder: 'e.g., Approve / Reject / Amount >= 50k',
458
+ nodeType: 'Node Type',
459
+ documentationGroup: 'Documentation',
460
+ documentationPlaceholder: 'Node notes, business rules, implementation hints, or process docs.',
461
+ startPermissionsGroup: 'Start Permissions',
462
+ starterUsers: 'Candidate Starter Users',
463
+ starterGroups: 'Candidate Starter Groups',
464
+ globalResourcesGroup: 'Global Event Resources',
465
+ globalResourcesDesc: 'Manage Message / Signal / Error / Escalation definitions referenced by event nodes.',
466
+ messageRowLabel: 'Message',
467
+ messageDefaultName: 'New Message',
468
+ signalRowLabel: 'Signal',
469
+ signalDefaultName: 'New Signal',
470
+ errorRowLabel: 'Error',
471
+ errorDefaultName: 'Business Error',
472
+ escalationRowLabel: 'Escalation',
473
+ escalationDefaultName: 'Business Escalation',
474
+ namespacesGroup: 'Namespaces',
475
+ namespacesDesc: 'XML namespaces used by custom attributes and extension elements. Use the xmlns:company prefix format.',
476
+ namespaceRowLabel: 'Namespace',
477
+ canvasDisplayGroup: 'Canvas Display',
478
+ showGrid: 'Show Grid',
479
+ gridSize: 'Grid Size',
480
+ snapToGrid: 'Snap to Grid',
481
+ alignmentGuides: 'Smart Alignment Guides',
482
+ alignmentGuidesNote: 'Disables magnetic alignment and drag alignment guides when turned off.',
483
+ layoutGroup: 'Layout & Routing',
484
+ defaultDirection: 'Default Layout Direction',
485
+ directionHorizontal: 'Horizontal (Left -> Right)',
486
+ directionVertical: 'Vertical (Top -> Bottom)',
487
+ layoutDensity: 'Layout Density',
488
+ layoutDensityNote: 'Affects node spacing for quick add and auto beautify.',
489
+ defaultEdgeStyle: 'Default Edge Style',
490
+ edgeStyleRounded: 'Rounded Orthogonal',
491
+ edgeStyleSmooth: 'Smooth Curve',
492
+ edgeStyleStraight: 'Straight Orthogonal',
493
+ beautifyEntryLabel: 'Arrange all nodes and edges',
494
+ beautifyActionLabel: 'Beautify',
495
+ conditionGroup: 'Condition & Default Flow',
496
+ conditionExpression: 'Condition Expression',
497
+ conditionParallelNote: 'Parallel gateways ignore branch conditions; exposed in Developer view for cleanup only.',
498
+ conditionDefaultNote: 'Exported as bpmn:conditionExpression.',
499
+ defaultFlow: 'Default Flow',
500
+ defaultFlowParallelNote: 'Parallel gateways do not support default flows; exposed in Developer view for cleanup only.',
501
+ edgeStyleGroup: 'Diagram Display',
502
+ routeStyle: 'Route Style',
503
+ cornerRadius: 'Corner Radius',
504
+ resetRouteLabel: 'Recalculate Optimal Path',
505
+ resetRouteActionLabel: 'Reset Route',
506
+ multiInstanceGroup: 'Loop / Multi-Instance',
507
+ loopType: 'Loop Type',
508
+ loopNone: 'None',
509
+ loopStandard: 'Standard Loop',
510
+ loopParallel: 'Parallel Multi-Instance',
511
+ loopSequential: 'Sequential Multi-Instance',
512
+ isForCompensation: 'For Compensation',
513
+ scriptGroup: 'Script',
514
+ callActivityGroup: 'Call Activity',
515
+ inheritBusinessKey: 'Inherit Business Key',
516
+ inheritVariables: 'Inherit Process Variables',
517
+ inputMapping: 'Input Mapping (In)',
518
+ inputMappingRow: 'Input Mapping',
519
+ outputMapping: 'Output Mapping (Out)',
520
+ outputMappingRow: 'Output Mapping',
521
+ messageRefPlaceholder: 'Select or enter Message ID',
522
+ messageSendGroup: 'Send Message',
523
+ messageReceiveGroup: 'Receive Message',
524
+ subProcessGroup: 'Sub-Process Behavior',
525
+ parallelRole: 'Parallel Role',
526
+ parallelRoleAuto: 'Auto Detect',
527
+ parallelRoleMixedDev: 'Mixed (Developer)',
528
+ parallelConvergingNote: 'A parallel join waits for all incoming flows before continuing.',
529
+ gatewayDirectionDiverging: 'Diverging / Split',
530
+ gatewayDirectionConverging: 'Converging / Join',
531
+ gatewayGroup: 'Gateway Settings',
532
+ gatewayBranchesGroup: ({ count }) => `Branches · ${count}`,
533
+ gatewayBranchesDesc: 'Edit outgoing branch names, conditions, and default flow; click Locate to select the Sequence Flow.',
534
+ parallelOutgoingGroup: ({ count }) => `Parallel Outgoing · ${count}`,
535
+ parallelOutgoingDesc: 'A parallel split activates all outgoing flows simultaneously; edit labels or locate each Sequence Flow.',
536
+ connectExistingNode: 'Connect to Existing Node',
537
+ connectParallelBranch: 'Connect Parallel Branch',
538
+ parallelJoinIncomingGroup: ({ count }) => `Join Incoming · ${count}`,
539
+ parallelIncomingGroup: ({ count }) => `Incoming Flows · ${count}`,
540
+ parallelIncomingAmbiguousDesc: 'Role is not yet determined; showing current incoming flows.',
541
+ parallelIncomingEmpty: 'No incoming flows on this parallel gateway',
542
+ parallelJoinOutgoingGroup: ({ count }) => `Next Outgoing · ${count}`,
543
+ parallelOutgoingAmbiguousGroup: ({ count }) => `Outgoing Flows · ${count}`,
544
+ parallelJoinOutgoingDesc: 'A parallel join typically connects to a single next node.',
545
+ parallelOutgoingAmbiguousDesc: 'Role is not yet determined; showing current outgoing flows.',
546
+ parallelOutgoingEmpty: 'No outgoing flows on this parallel gateway',
547
+ connectParallelNext: 'Connect Next Node',
548
+ parallelStructureGroup: 'Structure Check',
549
+ parallelStructureSummaryLabel: 'Flow Structure',
550
+ parallelStructureSummaryValue: ({ incoming, outgoing }) => `${incoming} in · ${outgoing} out`,
551
+ parallelStructureStatusLabel: 'Status',
552
+ parallelStructureIssuesLabel: 'Notes',
553
+ timerType: 'Timer Type',
554
+ timerValue: 'Timer Expression',
555
+ eventRefMessage: 'Message',
556
+ eventRefSignal: 'Signal',
557
+ eventRefError: 'Error',
558
+ eventRefEscalation: 'Escalation',
559
+ eventRefPlaceholder: 'Select or enter resource ID',
560
+ eventDefinition: 'Event Definition',
561
+ boundaryGroup: 'Boundary Event',
562
+ attachedToRef: 'Attached Activity',
563
+ cancelActivity: 'Interrupt Activity',
564
+ annotationText: 'Text',
565
+ swimlaneLabelPlacement: 'Header Placement',
566
+ swimlaneSide: 'Left Vertical',
567
+ swimlaneTop: 'Top Horizontal',
568
+ swimlanePoolNote: 'Lanes attached to this Pool inherit this header placement.',
569
+ swimlaneSideInherited: 'Left Vertical (Inherited from Pool)',
570
+ swimlaneTopInherited: 'Top Horizontal (Inherited from Pool)',
571
+ swimlaneLaneInheritedNote: 'Attached lane header placement is controlled by its parent Pool.',
572
+ swimlaneLaneLocalNote: 'Visual editor preference only; not written to standard BPMN XML.',
573
+ laneMembers: 'Contained Nodes',
574
+ laneMembersNote: 'Maintained automatically when nodes are dragged into the lane; shown here for inspection.',
575
+ artifactGroup: 'Element Settings',
576
+ extensionElementsDesc: 'Raw extension XML is preserved losslessly. Prefer structured Properties Providers and serializers; use this for viewing or editing unknown extensions.',
577
+ extensionAttributesGroup: 'Extension Attributes',
578
+ extensionAttributesDesc: 'Custom namespace attributes. Register the matching xmlns prefix in Process namespaceDeclarations. Unknown extension elements are preserved on import/export.',
579
+ extensionAttributeRow: 'Attribute',
580
+ elementActionsGroup: 'Element Actions',
581
+ deleteElementLabel: 'Delete Current Element',
582
+ deleteElementAction: 'Delete Element',
583
+ },
584
+ engine: {
585
+ columnType: 'Type',
586
+ columnImplementation: 'Implementation',
587
+ listenerRow: 'Listener',
588
+ assignee: 'Assignee',
589
+ candidateUsers: 'Candidate Users',
590
+ candidateGroups: 'Candidate Groups',
591
+ taskConfigGroup: 'Task Properties',
592
+ taskListenersLabel: 'Task Listeners',
593
+ implementationType: 'Implementation Type',
594
+ implementationValue: 'Implementation Value',
595
+ fieldInjectionLabel: 'Field Injection',
596
+ executionListenersLabel: 'Execution Listeners',
597
+ flowableProcessExecutionGroup: 'Flowable Execution Listeners',
598
+ flowableAssignmentGroup: 'Assignment · Flowable',
599
+ flowableRuleImplGroup: 'Rule Implementation · Flowable',
600
+ flowableSendImplGroup: 'Send Implementation · Flowable',
601
+ flowableServiceImplGroup: 'Service Implementation · Flowable',
602
+ flowableExecutionGroup: 'Execution · Flowable',
603
+ flowableCallGroup: 'Flowable Call Options',
604
+ activitiProcessExecutionGroup: 'Activiti Execution Listeners',
605
+ activitiAssignmentGroup: 'Assignment · Activiti',
606
+ activitiImplGroup: 'Implementation · Activiti',
607
+ activitiExecutionGroup: 'Execution · Activiti',
608
+ activitiCallGroup: 'Activiti Call Options',
609
+ },
610
+ },
611
+ runtime: {
612
+ status: {
613
+ idle: 'Not Reached',
614
+ active: 'In Progress',
615
+ completed: 'Completed',
616
+ failed: 'Failed',
617
+ cancelled: 'Cancelled',
618
+ skipped: 'Skipped',
619
+ rejected: 'Rejected',
620
+ returned: 'Returned',
621
+ reentry: 'Re-review',
622
+ countersign: ({ completed, total }) => `All-approve ${completed}/${total}`,
623
+ sequentialCountersign: ({ completed, total }) => `Sequential ${completed}/${total}`,
624
+ orSign: ({ completed, total }) => `Any-approve ${completed}/${total}`,
625
+ multiApproval: ({ completed, total }) => `Multi-approver ${completed}/${total}`,
626
+ activeVisits: ({ active }) => active === 1 ? '1 active execution' : `${active} active executions`,
627
+ activeVisitsOfTotal: ({ active, total }) => `${active}/${total} active executions`,
628
+ },
629
+ summary: {
630
+ pendingAssignee: 'Unassigned',
631
+ pendingClaim: ({ value }) => `Pending claim · ${value}`,
632
+ branchSkipped: 'Branch skipped',
633
+ notVisited: 'Not visited',
634
+ notReachedYet: 'Not reached yet',
635
+ automatedActive: 'Running',
636
+ automatedCompleted: 'Completed',
637
+ automatedFailed: 'Execution failed',
638
+ automatedWaiting: 'Waiting to run',
639
+ },
640
+ transitions: {
641
+ reject: 'Reject',
642
+ return: 'Return',
643
+ skip: 'Skip',
644
+ forward: 'Forward',
645
+ rejectPrefix: 'Rejected to',
646
+ returnPrefix: 'Returned to',
647
+ skipPrefix: 'Skipped',
648
+ forwardPrefix: 'Moved to',
649
+ rejectTo: ({ target }) => `Rejected to: ${target}`,
650
+ returnTo: ({ target }) => `Returned to: ${target}`,
651
+ skipTo: ({ target }) => `Skipped: ${target}`,
652
+ forwardTo: ({ target }) => `Moved to: ${target}`,
653
+ },
654
+ action: {
655
+ imageCount: ({ count }) => count === 1 ? '1 image' : `${count} images`,
656
+ fileCount: ({ count }) => count === 1 ? '1 attachment' : `${count} attachments`,
657
+ },
658
+ diagnostics: {
659
+ duplicateActivityId: 'Duplicate activity work-item ID.',
660
+ visitElementMismatch: 'Same visitId is associated with different BPMN elements.',
661
+ invalidTime: 'Timestamp could not be parsed.',
662
+ naiveTime: 'Timestamp has no timezone offset; ordering may vary across environments.',
663
+ unknownElement: 'Work item references an unknown BPMN element.',
664
+ duplicateActionId: 'Duplicate action ID.',
665
+ unknownActivity: 'Action references an unknown work item.',
666
+ actionIdentityMismatch: 'Action elementId or visitId does not match its work item.',
667
+ actionInvalidTime: 'Action timestamp could not be parsed.',
668
+ actionNaiveTime: 'Action timestamp has no timezone offset.',
669
+ actionMissingTime: 'Action has no timestamp; ordering is best-effort for display only.',
670
+ duplicateTransitionId: 'Duplicate transition ID.',
671
+ transitionUnknownActivity: 'Transition references an unknown source work item.',
672
+ transitionUnknownAction: 'Transition references an unknown action.',
673
+ transitionUnknownSource: 'Transition source element does not exist.',
674
+ transitionUnknownTarget: 'Transition target element does not exist.',
675
+ transitionInvalidTime: 'Transition timestamp could not be parsed.',
676
+ transitionNaiveTime: 'Transition timestamp has no timezone offset.',
677
+ duplicateEdgeVisitId: 'Duplicate edge visit ID.',
678
+ unknownEdge: 'Edge visit references an unknown BPMN edge.',
679
+ invalidationWorkItemId: 'Invalidation field received a work-item ID; only BPMN element IDs are accepted.',
680
+ invalidationUnknownElement: 'Invalidation scope references an unknown BPMN element.',
681
+ invalidationFieldConflict: 'invalidatedElementIds and invalidatedActivityIds differ; invalidatedElementIds takes precedence.',
682
+ elementInvalidationConcurrentVisits: 'Element-level invalidation encountered multiple effective visits; unrelated concurrent executions were kept.',
683
+ unknownSupersededVisit: 'supersedesVisitId did not match any visit on the same element.',
684
+ concurrentVisits: 'Overlapping independent visits on the same element without a supersedes relationship.',
685
+ ambiguousVisitOrder: 'Multiple visits lack comparable timestamps; historical active visits were not treated as sequential re-entry.',
686
+ },
687
+ invalidationIssues: {
688
+ missingEndpoints: 'Transition source or target node does not exist; unable to infer invalidated path.',
689
+ crossScope: 'Transition crosses process scopes; path was not reset automatically.',
690
+ multipleCandidatePaths: 'Multiple candidate paths found for transition; path was not reset automatically.',
691
+ pathNotFound: 'No visited path found from transition target to source.',
692
+ },
693
+ trace: {
694
+ predictedSummary: 'Pending',
695
+ parallelGroupDefault: 'Parallel Approval',
696
+ missingElementWarning: ({ elementId }) => `Runtime record references a missing element: ${elementId}`,
697
+ },
698
+ },
699
+ viewer: {
700
+ outcomes: {
701
+ approved: 'Approved',
702
+ rejected: 'Rejected',
703
+ returned: 'Returned',
704
+ submitted: 'Submitted',
705
+ pending: 'Pending',
706
+ },
707
+ details: {
708
+ ariaLabel: ({ name }) => `${name} approval details`,
709
+ fallbackNodeName: 'Node',
710
+ fallbackTitle: 'Node Details',
711
+ roundLabel: ({ round }) => `Round ${round}`,
712
+ roundHistorical: ({ round }) => `Round ${round} · Historical`,
713
+ traceSubtitle: 'Approval Trace',
714
+ closeLabel: 'Close approval details',
715
+ approvalModeAll: 'All-Approve',
716
+ approvalModeAllSequential: 'Sequential All-Approve',
717
+ approvalModeAny: 'Any-Approve',
718
+ approvalModeMulti: 'Multi-Approver',
719
+ systemActor: 'System',
720
+ targets: ({ names }) => `Targets: ${names}`,
721
+ targetElement: ({ id }) => `Target node: ${id}`,
722
+ rejectedTo: ({ target }) => `Rejected to ${target}`,
723
+ returnedTo: ({ target }) => `Returned to ${target}`,
724
+ },
725
+ transitionDetails: {
726
+ rejectRecord: 'Rejection Record',
727
+ returnRecord: 'Return Record',
728
+ rejectRecordAria: ({ source }) => `${source} rejection record`,
729
+ returnRecordAria: ({ source }) => `${source} return record`,
730
+ fallbackNodeName: 'Node',
731
+ fallbackTitle: 'Rejection Record',
732
+ rejectedBadge: 'Rejected',
733
+ returnedBadge: 'Returned',
734
+ closeRejectDetails: 'Close rejection details',
735
+ closeReturnDetails: 'Close return details',
736
+ unknownOperator: 'Unknown operator',
737
+ rejectedTo: ({ target }) => `Rejected to ${target}`,
738
+ returnedTo: ({ target }) => `Returned to ${target}`,
739
+ locateSource: 'Locate Source',
740
+ locateTarget: 'Locate Target',
741
+ },
742
+ assets: {
743
+ unavailable: 'Resource unavailable',
744
+ imageLoading: 'Loading image',
745
+ imagePreviewAria: ({ name }) => `Image preview: ${name}`,
746
+ closeImagePreview: 'Close image preview',
747
+ previewImageAria: ({ name }) => `Preview image: ${name}`,
748
+ imageUnavailable: 'Image unavailable',
749
+ fileUnavailable: 'Attachment unavailable',
750
+ downloadFileAria: ({ name }) => `Download attachment: ${name}`,
751
+ preparingDownload: 'Preparing',
752
+ download: 'Download',
753
+ unsupportedContent: ({ type }) => `Unsupported content: ${type}`,
754
+ },
755
+ },
756
+ timeline: {
757
+ defaultTitle: 'Approval Trace',
758
+ defaultDescription: 'Ordered by actual execution sequence',
759
+ ariaLabel: ({ title }) => `${title} approval trace`,
760
+ fallbackProcessName: 'Process',
761
+ empty: 'No runtime trace available',
762
+ round: ({ round }) => `Round ${round}`,
763
+ results: {
764
+ approved: 'Approved',
765
+ rejected: 'Rejected',
766
+ returned: 'Returned',
767
+ submitted: 'Submitted',
768
+ pending: 'Pending',
769
+ },
770
+ participantsToggle: ({ count }) => count === 1 ? 'View participants · 1 person' : `View participants · ${count} people`,
771
+ earlierActions: ({ count }) => count === 1 ? 'View 1 earlier action' : `View ${count} earlier actions`,
772
+ targets: ({ names }) => `Targets: ${names}`,
773
+ parallelCompleted: ({ completed, total }) => `${completed}/${total} completed`,
774
+ parallelSvgHeader: ({ label, completed, total }) => `${label} · ${completed}/${total} completed`,
775
+ itemAria: ({ name, status, summary, comment }) => [name, status, summary, comment].filter(Boolean).join(', '),
776
+ },
777
+ exportSvg: {
778
+ defaultLabels: {
779
+ design: 'Process Design',
780
+ viewer: 'Process Preview',
781
+ instance: 'Approval Trace',
782
+ timeline: 'Timeline',
783
+ approval: 'Effective Path',
784
+ standard: 'Full BPMN',
785
+ },
786
+ preview: {
787
+ defaultTitle: 'Export SVG',
788
+ subtitle: 'Preview before downloading',
789
+ closeAria: 'Close SVG preview',
790
+ themeGroupAria: 'SVG theme',
791
+ themeCurrent: 'Current',
792
+ themeLight: 'Light',
793
+ themeDark: 'Dark',
794
+ transparentBackground: 'Transparent background',
795
+ zoomOut: 'Zoom out',
796
+ zoomIn: 'Zoom in',
797
+ fitView: 'Fit View',
798
+ actualSize: '1:1',
799
+ viewportAria: 'SVG preview canvas, draggable and zoomable',
800
+ imageAlt: 'SVG export preview',
801
+ generating: 'Generating SVG…',
802
+ preparingExport: 'Ready to export',
803
+ preparingFullContent: 'Preparing full content',
804
+ failed: ({ message }) => `Export failed: ${message}`,
805
+ unknownError: 'Unknown error',
806
+ notGenerated: 'SVG not generated',
807
+ cancel: 'Cancel',
808
+ retry: 'Retry',
809
+ confirmDownload: 'Download',
810
+ warningsHeading: ({ count }) => count === 1 ? '1 item rendered with fallback' : `${count} items rendered with fallback`,
811
+ warningsMore: ({ count }) => count === 1 ? '1 more item' : `${count} more items`,
812
+ },
813
+ warnings: {
814
+ customNodeRendererFailed: ({ name }) => `SVG renderer for node "${name}" failed; fell back to standard visuals.`,
815
+ customNodeRendererFallback: ({ name }) => `Node "${name}" has no SVG renderer; fell back to standard visuals.`,
816
+ customTimelineRendererFailed: 'Custom timeline SVG renderer failed; fell back to default timeline.',
817
+ assetInvalid: 'Invalid approval image reference; showing placeholder.',
818
+ assetUnavailable: ({ name }) => `Image "${name}" could not be embedded in SVG; showing placeholder.`,
819
+ avatarUnavailable: 'Participant avatar could not be embedded in SVG; showing initials.',
820
+ },
821
+ fileUnavailable: 'Attachment unavailable',
822
+ },
823
+ flowTree: {
824
+ brandTitle: 'Approval Flow',
825
+ defaultProcessName: 'Approval Process',
826
+ defaultStarterName: 'Initiator',
827
+ defaultEndName: 'End',
828
+ nodeTypes: {
829
+ starter: 'Initiator',
830
+ approver: 'Approver',
831
+ cc: 'CC',
832
+ handler: 'Handler',
833
+ conditionRoute: 'Condition Branch',
834
+ conditionBranch: 'Condition',
835
+ parallelRoute: 'Parallel Branch',
836
+ parallelBranch: 'Parallel Branch',
837
+ inclusiveRoute: 'Inclusive Branch',
838
+ inclusiveBranch: 'Inclusive Branch',
839
+ delay: 'Delay',
840
+ trigger: 'Trigger',
841
+ subFlow: 'Subflow',
842
+ end: 'End',
843
+ },
844
+ nodeDescriptions: {
845
+ approver: 'Assign people, managers, or roles to approve',
846
+ cc: 'Automatically notify recipients of approval progress',
847
+ handler: 'Fill in fields or perform operational handling',
848
+ conditionRoute: 'Take the first matching branch by priority',
849
+ parallelRoute: 'Run branches concurrently and join when all finish',
850
+ inclusiveRoute: 'Run all matching condition branches in parallel',
851
+ delay: 'Wait for a duration or scheduled date before continuing',
852
+ trigger: 'Call a Webhook, Java delegate, or expression',
853
+ subFlow: 'Invoke an external process or run embedded steps',
854
+ },
855
+ addMenu: {
856
+ title: 'Add Node',
857
+ groups: {
858
+ approval: 'Approval & Handling',
859
+ routing: 'Branch Routing',
860
+ automation: 'Automation & Subflow',
861
+ custom: 'Custom Nodes',
862
+ },
863
+ wrapFollowing: 'Move following steps into first branch',
864
+ },
865
+ canvas: {
866
+ addNodeAria: 'Insert node here',
867
+ addConditionBranch: 'Add Condition',
868
+ addParallelBranch: 'Add Parallel Branch',
869
+ addInclusiveBranch: 'Add Inclusive Branch',
870
+ priorityBadge: ({ priority }) => `Priority ${priority}`,
871
+ defaultBranchBadge: 'Default',
872
+ defaultBranchName: 'Default',
873
+ branchName: ({ index }) => `Condition ${index}`,
874
+ parallelBranchName: ({ index }) => `Parallel ${index}`,
875
+ inclusiveBranchName: ({ index }) => `Inclusive ${index}`,
876
+ moveLeft: 'Increase priority (move left)',
877
+ moveRight: 'Decrease priority (move right)',
878
+ collapseBranch: 'Collapse branch',
879
+ expandBranch: 'Expand branch',
880
+ collapsedCount: ({ count }) => `${count} hidden steps`,
881
+ duplicateNode: 'Duplicate node',
882
+ deleteNode: 'Delete node',
883
+ dropHere: 'Drop here',
884
+ dragHint: 'Drag to reorder node',
885
+ emptyBranchHint: 'Flows directly to join when matched',
886
+ unconfigured: 'Click to configure',
887
+ allMembers: 'All members',
888
+ defaultBranchSummary: 'Entered when no other condition matches',
889
+ parallelBranchSummary: 'Runs concurrently with sibling branches',
890
+ endSummary: 'Process terminates here',
891
+ },
892
+ summaries: {
893
+ starterAll: 'All members can submit',
894
+ starterSpecified: ({ count }) => `${count} starter rules configured`,
895
+ assigneeUsers: ({ names }) => `Users: ${names}`,
896
+ assigneeRoles: ({ names }) => `Roles: ${names}`,
897
+ assigneeDepartments: ({ names }) => `Departments: ${names}`,
898
+ assigneeSupervisor: ({ level }) => level === 1 ? 'Direct manager' : `Level ${level} manager`,
899
+ assigneeMultiSupervisor: ({ endLevel }) => `Multi-level managers (up to L${endLevel})`,
900
+ assigneeSelfSelect: 'Selected by initiator',
901
+ assigneeFormUser: ({ field }) => `Form contact: ${field}`,
902
+ assigneeInitiatorSelf: 'Initiator self',
903
+ assigneeExpression: ({ expression }) => `Expr: ${expression}`,
904
+ approvalMode: {
905
+ and: 'All approve',
906
+ or: 'Any approve',
907
+ sequential: 'Sequential',
908
+ percentage: ({ percent }) => `${percent}% approval`,
909
+ },
910
+ ccUnconfigured: 'No CC recipients set',
911
+ ccSelfSelectSuffix: ' (self-select allowed)',
912
+ delayDuration: ({ value, unit }) => `Wait ${value} ${unit}`,
913
+ delayFixedDate: ({ value }) => `Wait until ${value}`,
914
+ delayCron: ({ value }) => `Schedule: ${value}`,
915
+ delayUnconfigured: 'Delay not configured',
916
+ triggerWebhook: ({ method, url }) => `${method} ${url}`,
917
+ triggerService: ({ type, value }) => `${type}: ${value}`,
918
+ triggerUnconfigured: 'Trigger not configured',
919
+ subFlowCall: ({ target }) => `Call: ${target}`,
920
+ subFlowEmbedded: ({ count }) => `Embedded (${count} steps)`,
921
+ subFlowUnconfigured: 'Subflow not configured',
922
+ conditionRulesCount: ({ count }) => `${count} condition rules`,
923
+ conditionExpression: ({ expression }) => expression,
924
+ conditionUnconfigured: 'Configure branch condition',
925
+ },
926
+ shell: {
927
+ modes: {
928
+ design: 'Design',
929
+ viewer: 'Preview',
930
+ instance: 'Trace',
931
+ },
932
+ views: {
933
+ tree: 'Flow Tree',
934
+ bpmn: 'BPMN Diagram',
935
+ timeline: 'Timeline',
936
+ },
937
+ tools: {
938
+ undo: 'Undo',
939
+ redo: 'Redo',
940
+ validate: 'Validate',
941
+ previewXml: 'BPMN XML',
942
+ importLabel: 'Import',
943
+ importBpmn: 'Import BPMN XML',
944
+ importBpmnHint: 'Parse Flowable / Activiti XML into FlowTree',
945
+ importJson: 'Import JSON',
946
+ importJsonHint: 'Load FlowTree JSON definition',
947
+ exportLabel: 'Export',
948
+ exportBpmn: 'Export BPMN 2.0 XML',
949
+ exportBpmnHint: 'Compile executable XML for Flowable / Activiti',
950
+ exportJson: 'Export JSON',
951
+ exportJsonHint: 'Save structured FlowTree document',
952
+ exportSvg: 'Export SVG',
953
+ exportSvgHint: 'Preview and download crisp vector SVG',
954
+ zoomOut: 'Zoom out',
955
+ zoomIn: 'Zoom in',
956
+ actualSize: '1:1',
957
+ fitView: 'Fit View',
958
+ engineLabel: 'Engine',
959
+ },
960
+ status: {
961
+ nodeCount: ({ count }) => `${count} nodes`,
962
+ validPassed: 'Validation passed; ready to compile BPMN 2.0 XML',
963
+ validationIssues: ({ errors, warnings }) => `${errors} errors, ${warnings} warnings`,
964
+ importedSuccess: 'Flow imported successfully',
965
+ exportedXml: 'Exported BPMN 2.0 XML',
966
+ exportedJson: 'Exported FlowTree JSON',
967
+ importIncompatible: 'This BPMN graph uses non-tree topology and cannot be losslessly restored to FlowTree',
968
+ xmlPreviewTitle: 'Compiled BPMN 2.0 XML',
969
+ copyXml: 'Copy XML',
970
+ copiedXml: 'Copied',
971
+ downloadXml: 'Download XML',
972
+ close: 'Close',
973
+ },
974
+ validationPanel: {
975
+ title: 'Validation Issues',
976
+ empty: 'All nodes are properly configured with no issues.',
977
+ locate: 'Locate',
978
+ },
979
+ },
980
+ properties: {
981
+ tabs: {
982
+ basic: 'Basic',
983
+ rules: 'Rules',
984
+ buttons: 'Actions',
985
+ form: 'Form',
986
+ },
987
+ sections: {
988
+ processInfo: 'Process Details',
989
+ compileOptions: 'BPMN 2.0 Compilation & Global Rules',
990
+ starterScope: 'Initiator Scope',
991
+ assignee: 'Approver Assignment',
992
+ handlerAssignee: 'Handler Assignment',
993
+ ccTargets: 'CC Recipients',
994
+ approvalMode: 'Multi-Approver Mode',
995
+ handlerMode: 'Multi-Handler Mode',
996
+ emptyStrategy: 'When Assignee Is Empty',
997
+ sameAsInitiator: 'When Approver Is Initiator',
998
+ dedupStrategy: 'Approver Deduplication',
999
+ timeout: 'Timeout & Reminder',
1000
+ buttons: 'Action Button Permissions',
1001
+ formPermissions: 'Form Field Permission Matrix',
1002
+ conditionMode: 'Condition Mode',
1003
+ conditionBuilder: 'Visual Rule Groups',
1004
+ conditionExpression: 'Advanced Expression (JUEL)',
1005
+ conditionPreview: 'Compiled BPMN Expression',
1006
+ delayConfig: 'Delay Configuration',
1007
+ triggerConfig: 'Trigger Configuration',
1008
+ subFlowConfig: 'Subflow Configuration',
1009
+ endConfig: 'Process End',
1010
+ },
1011
+ fields: {
1012
+ processId: 'Process ID',
1013
+ processName: 'Process Name',
1014
+ engine: 'Target Engine',
1015
+ documentation: 'Documentation',
1016
+ starterCompileMode: 'Starter BPMN Compilation',
1017
+ ccCompileMode: 'CC BPMN Compilation',
1018
+ globalDedup: 'Global Deduplication',
1019
+ allowWithdraw: 'Allow Initiator Withdraw',
1020
+ nodeId: 'Node ID',
1021
+ nodeName: 'Node Name',
1022
+ starterScopeType: 'Who can submit',
1023
+ allowResubmit: 'Allow resubmit after rejection',
1024
+ assigneeType: 'Assignment Type',
1025
+ selectedUsers: 'Users',
1026
+ selectedRoles: 'Roles',
1027
+ selectedDepartments: 'Departments',
1028
+ supervisorLevel: 'Manager Level',
1029
+ supervisorEndLevel: 'Stop At Level',
1030
+ formUserField: 'Form Contact Field',
1031
+ assigneeExpression: 'Assignee Expression (JUEL)',
1032
+ selfSelectMultiple: 'Allow multiple self-selected approvers',
1033
+ approvalMode: 'Approval Mode',
1034
+ passPercentage: 'Pass Percentage (%)',
1035
+ emptyStrategy: 'Empty Assignee Strategy',
1036
+ fallbackUsers: 'Fallback Approvers',
1037
+ sameAsInitiator: 'Same-As-Initiator Strategy',
1038
+ dedupStrategy: 'Deduplication Strategy',
1039
+ timeoutEnabled: 'Enable Timeout Handling',
1040
+ timeoutDuration: 'Duration',
1041
+ timeoutUnit: 'Unit',
1042
+ timeoutAction: 'On Timeout',
1043
+ allowStarterSelfSelectCc: 'Allow initiator to add CC recipients',
1044
+ ccTiming: 'CC Timing',
1045
+ ccDelegateExpression: 'BPMN Delegate Expression',
1046
+ priority: 'Branch Priority',
1047
+ branchConditionMode: 'Mode',
1048
+ delayType: 'Delay Type',
1049
+ delayValue: 'Duration',
1050
+ delayUnit: 'Unit',
1051
+ delayDate: 'Target Date or Expression',
1052
+ delayCron: 'Cron / ISO Cycle',
1053
+ triggerType: 'Execution Type',
1054
+ webhookMethod: 'HTTP Method',
1055
+ webhookUrl: 'Endpoint URL',
1056
+ webhookHeaders: 'HTTP Headers',
1057
+ webhookBody: 'Request Body Template (JSON)',
1058
+ implementation: 'Class / Expression',
1059
+ resultVariable: 'Result Variable',
1060
+ asyncExecution: 'Asynchronous (async)',
1061
+ retryCycle: 'Retry Time Cycle',
1062
+ fieldsInjection: 'Field Injection',
1063
+ subFlowMode: 'Subflow Mode',
1064
+ calledElement: 'Called Process Key',
1065
+ inheritBusinessKey: 'Inherit Business Key',
1066
+ inheritVariables: 'Inherit Process Variables',
1067
+ inParameters: 'Input Variable Mapping',
1068
+ outParameters: 'Output Variable Mapping',
1069
+ embeddedStepsHint: 'Embedded subflows compile to standard bpmn:SubProcess elements. Manage internal steps below.',
1070
+ commentRequiredOnReject: 'Require comment when rejecting',
1071
+ returnMode: 'Return Target Scope',
1072
+ },
1073
+ options: {
1074
+ starterScopeAll: 'All members',
1075
+ starterScopeSpecified: 'Specified users / departments / roles',
1076
+ starterCompileStartAndTask: 'StartEvent + Initiator Task (Recommended, supports return-to-starter)',
1077
+ starterCompileStartEvent: 'StartEvent only (Minimal BPMN)',
1078
+ ccCompileServiceTask: 'ServiceTask (Recommended, traceable in runtime)',
1079
+ ccCompileListener: 'ExecutionListener',
1080
+ dedupNone: 'No deduplication',
1081
+ dedupConsecutive: 'Skip consecutive duplicate approver',
1082
+ dedupAll: 'Approve once across the entire process',
1083
+ dedupInherit: 'Inherit process global setting',
1084
+ assigneeUsers: 'Specified users',
1085
+ assigneeRoles: 'Specified roles',
1086
+ assigneeDepartments: 'Specified departments',
1087
+ assigneeSupervisor: 'Reporting manager',
1088
+ assigneeMultiSupervisor: 'Multi-level managers',
1089
+ assigneeSelfSelect: 'Initiator self-select',
1090
+ assigneeFormUser: 'Form contact field',
1091
+ assigneeInitiatorSelf: 'Initiator self',
1092
+ assigneeExpression: 'Custom expression',
1093
+ modeAnd: 'All approve (Countersign)',
1094
+ modeOr: 'Any approve (Or-sign)',
1095
+ modeSequential: 'Sequential approval',
1096
+ modePercentage: 'Percentage threshold',
1097
+ emptyAutoPass: 'Auto-approve',
1098
+ emptyToAdmin: 'Route to process admin',
1099
+ emptyToSpecified: 'Route to fallback approvers',
1100
+ emptyReject: 'Auto-reject',
1101
+ sameDefault: 'Approve normally',
1102
+ sameAutoPass: 'Auto-skip',
1103
+ sameToSupervisor: 'Route to direct manager',
1104
+ sameToAdmin: 'Route to process admin',
1105
+ unitMinute: 'Minutes',
1106
+ unitHour: 'Hours',
1107
+ unitDay: 'Days',
1108
+ timeoutRemind: 'Send reminder only',
1109
+ timeoutAutoPass: 'Auto-approve',
1110
+ timeoutAutoReject: 'Auto-reject',
1111
+ timeoutTransfer: 'Transfer to admin',
1112
+ ccOnArrive: 'Notify upon arriving at node',
1113
+ ccOnProcessEnd: 'Notify after process completes',
1114
+ returnPrevious: 'Previous approval node',
1115
+ returnStarter: 'Initiator for resubmission',
1116
+ returnAnyPrevious: 'Any previously visited node',
1117
+ returnSpecified: 'Specified nodes',
1118
+ conditionVisual: 'Visual rule builder',
1119
+ conditionExpression: 'Advanced JUEL expression',
1120
+ delayDuration: 'Relative duration',
1121
+ delayFixedDate: 'Fixed date / expression',
1122
+ delayCron: 'Recurring cycle / Cron',
1123
+ triggerWebhook: 'HTTP Webhook',
1124
+ triggerClass: 'Java Delegate Class',
1125
+ triggerDelegateExpression: 'Delegate Expression',
1126
+ triggerExpression: 'JUEL Expression',
1127
+ subFlowCallActivity: 'External Process (CallActivity)',
1128
+ subFlowEmbedded: 'Embedded Subflow (SubProcess)',
1129
+ permEditable: 'Editable',
1130
+ permReadonly: 'Read-only',
1131
+ permHidden: 'Hidden',
1132
+ },
1133
+ buttons: {
1134
+ approve: 'Approve',
1135
+ reject: 'Reject',
1136
+ returnEnabled: 'Return',
1137
+ transfer: 'Transfer',
1138
+ addSign: 'Add-Sign',
1139
+ delegate: 'Delegate',
1140
+ complete: 'Submit',
1141
+ },
1142
+ condition: {
1143
+ groupLogicAnd: 'AND (all rules in group match)',
1144
+ groupLogicOr: 'OR (any rule in group matches)',
1145
+ outerOrHint: 'Groups combine with OR: matching any group enters this branch',
1146
+ addRule: 'Add Rule',
1147
+ addGroup: 'Add OR Group',
1148
+ removeGroup: 'Remove Group',
1149
+ removeRule: 'Remove rule',
1150
+ fieldPlaceholder: 'Field key (e.g. amount)',
1151
+ valuePlaceholder: 'Value',
1152
+ minPlaceholder: 'Min',
1153
+ maxPlaceholder: 'Max',
1154
+ noExpressionYet: 'No condition configured yet',
1155
+ operators: {
1156
+ eq: 'Equals',
1157
+ neq: 'Not equals',
1158
+ gt: 'Greater than',
1159
+ gte: 'Greater or equal',
1160
+ lt: 'Less than',
1161
+ lte: 'Less or equal',
1162
+ between: 'Between',
1163
+ in: 'In list',
1164
+ notIn: 'Not in list',
1165
+ contains: 'Contains',
1166
+ notContains: 'Does not contain',
1167
+ isEmpty: 'Is empty',
1168
+ isNotEmpty: 'Is not empty',
1169
+ belongsToDept: 'In department',
1170
+ hasRole: 'Has role',
1171
+ },
1172
+ },
1173
+ formMatrix: {
1174
+ fieldColumn: 'Form Field',
1175
+ emptyFields: 'No form schema provided. Add field keys manually to configure permissions.',
1176
+ addFieldPlaceholder: 'Field key (e.g. reason)',
1177
+ addFieldButton: 'Add Field',
1178
+ batchAll: 'All',
1179
+ },
1180
+ picker: {
1181
+ searchPlaceholder: 'Search or type ID and press Enter…',
1182
+ addButton: 'Add',
1183
+ emptyHint: 'Nothing selected',
1184
+ loading: 'Searching…',
1185
+ },
1186
+ embeddedSteps: {
1187
+ addApprover: 'Add Approver',
1188
+ addCc: 'Add CC',
1189
+ addHandler: 'Add Handler',
1190
+ addTrigger: 'Add Trigger',
1191
+ empty: 'No steps in embedded subflow',
1192
+ backToSubFlow: 'Back to Subflow: {name}',
1193
+ },
1194
+ params: {
1195
+ source: 'Parent var / expression',
1196
+ target: 'Subflow var',
1197
+ headerKey: 'Header name',
1198
+ headerValue: 'Header value',
1199
+ fieldName: 'Field name',
1200
+ fieldValue: 'Value',
1201
+ addRow: 'Add Row',
1202
+ },
1203
+ },
1204
+ validation: {
1205
+ duplicateNodeId: ({ id }) => `Duplicate node ID: ${id}`,
1206
+ approverMissingTarget: ({ name }) => `Approver "${name}" has no assignee configured`,
1207
+ approverMissingExpression: ({ name }) => `Approver "${name}" is missing an assignee expression`,
1208
+ approverMissingFormField: ({ name }) => `Approver "${name}" has no form contact field specified`,
1209
+ approverMissingFallback: ({ name }) => `Approver "${name}" routes empty assignee to fallback users, but none are selected`,
1210
+ ccMissingTarget: ({ name }) => `CC node "${name}" has no recipients and does not allow initiator self-selection`,
1211
+ handlerMissingTarget: ({ name }) => `Handler "${name}" has no assignee configured`,
1212
+ routeMinBranches: ({ name }) => `Branch container "${name}" requires at least 2 branches`,
1213
+ conditionMissingDefault: ({ name }) => `Condition route "${name}" is missing a default fallback branch`,
1214
+ conditionBranchEmpty: ({ name }) => `Branch "${name}" has no condition configured`,
1215
+ delayMissingValue: ({ name }) => `Delay "${name}" has no valid wait time configured`,
1216
+ triggerMissingTarget: ({ name }) => `Trigger "${name}" is missing a webhook URL or implementation`,
1217
+ subFlowMissingCalledElement: ({ name }) => `Subflow "${name}" has no target process key specified`,
1218
+ subFlowEmptyEmbedded: ({ name }) => `Embedded subflow "${name}" has no internal steps`,
1219
+ activitiInclusiveAdvisory: ({ name }) => `Inclusive route "${name}" may have join limitations in some Activiti 7 builds; verify engine compatibility before deployment`,
1220
+ },
1221
+ },
1222
+ };