@emaarco/bpmn-js-data-simulation 0.0.0 → 0.2.0

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 (103) hide show
  1. package/README.md +99 -0
  2. package/dist/assets/bpmn-js-data-simulation.css +127 -0
  3. package/dist/domain/GatewayRouter.d.ts +11 -0
  4. package/dist/domain/GatewayRouter.d.ts.map +1 -0
  5. package/dist/domain/ScenarioError.d.ts +4 -0
  6. package/dist/domain/ScenarioError.d.ts.map +1 -0
  7. package/dist/domain/ScenarioParser.d.ts +7 -0
  8. package/dist/domain/ScenarioParser.d.ts.map +1 -0
  9. package/dist/domain/StartFieldCodec.d.ts +7 -0
  10. package/dist/domain/StartFieldCodec.d.ts.map +1 -0
  11. package/dist/domain/StartFieldDeriver.d.ts +7 -0
  12. package/dist/domain/StartFieldDeriver.d.ts.map +1 -0
  13. package/dist/domain/model.d.ts +64 -0
  14. package/dist/domain/model.d.ts.map +1 -0
  15. package/dist/engines/EngineRegistry.d.ts +6 -0
  16. package/dist/engines/EngineRegistry.d.ts.map +1 -0
  17. package/dist/engines/camunda7/Camunda7Engine.d.ts +17 -0
  18. package/dist/engines/camunda7/Camunda7Engine.d.ts.map +1 -0
  19. package/dist/engines/camunda7/juel/JuelError.d.ts +4 -0
  20. package/dist/engines/camunda7/juel/JuelError.d.ts.map +1 -0
  21. package/dist/engines/camunda7/juel/JuelEvaluator.d.ts +18 -0
  22. package/dist/engines/camunda7/juel/JuelEvaluator.d.ts.map +1 -0
  23. package/dist/engines/camunda7/juel/JuelLexer.d.ts +6 -0
  24. package/dist/engines/camunda7/juel/JuelLexer.d.ts.map +1 -0
  25. package/dist/engines/camunda7/juel/JuelParser.d.ts +19 -0
  26. package/dist/engines/camunda7/juel/JuelParser.d.ts.map +1 -0
  27. package/dist/engines/camunda7/juel/JuelTemplate.d.ts +11 -0
  28. package/dist/engines/camunda7/juel/JuelTemplate.d.ts.map +1 -0
  29. package/dist/engines/camunda7/juel/juelSyntax.d.ts +34 -0
  30. package/dist/engines/camunda7/juel/juelSyntax.d.ts.map +1 -0
  31. package/dist/engines/engines.d.ts +5 -0
  32. package/dist/engines/engines.d.ts.map +1 -0
  33. package/dist/engines/types.d.ts +21 -0
  34. package/dist/engines/types.d.ts.map +1 -0
  35. package/dist/engines/zeebe/ZeebeEngine.d.ts +21 -0
  36. package/dist/engines/zeebe/ZeebeEngine.d.ts.map +1 -0
  37. package/dist/index.cjs +2099 -0
  38. package/dist/index.cjs.map +1 -0
  39. package/dist/index.d.ts +17 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +2084 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/integration/DataGateways.d.ts +21 -0
  44. package/dist/integration/DataGateways.d.ts.map +1 -0
  45. package/dist/integration/DataSimulation.d.ts +35 -0
  46. package/dist/integration/DataSimulation.d.ts.map +1 -0
  47. package/dist/integration/DataSimulationOverlays.d.ts +23 -0
  48. package/dist/integration/DataSimulationOverlays.d.ts.map +1 -0
  49. package/dist/integration/DataSimulationPanel.d.ts +14 -0
  50. package/dist/integration/DataSimulationPanel.d.ts.map +1 -0
  51. package/dist/integration/DataSimulationToggle.d.ts +19 -0
  52. package/dist/integration/DataSimulationToggle.d.ts.map +1 -0
  53. package/dist/integration/DataStartForm.d.ts +19 -0
  54. package/dist/integration/DataStartForm.d.ts.map +1 -0
  55. package/dist/integration/IoMappings.d.ts +11 -0
  56. package/dist/integration/IoMappings.d.ts.map +1 -0
  57. package/dist/integration/VariableUsageCollector.d.ts +11 -0
  58. package/dist/integration/VariableUsageCollector.d.ts.map +1 -0
  59. package/dist/integration/behaviors/DataContextPads.d.ts +29 -0
  60. package/dist/integration/behaviors/DataContextPads.d.ts.map +1 -0
  61. package/dist/integration/behaviors/DataGatewayBehaviors.d.ts +13 -0
  62. package/dist/integration/behaviors/DataGatewayBehaviors.d.ts.map +1 -0
  63. package/dist/integration/behaviors/DataGatewaySettings.d.ts +18 -0
  64. package/dist/integration/behaviors/DataGatewaySettings.d.ts.map +1 -0
  65. package/dist/integration/index.d.ts +7 -0
  66. package/dist/integration/index.d.ts.map +1 -0
  67. package/dist/integration/tokenSimulation.d.ts +95 -0
  68. package/dist/integration/tokenSimulation.d.ts.map +1 -0
  69. package/dist/simulation/DataSimulationStore.d.ts +85 -0
  70. package/dist/simulation/DataSimulationStore.d.ts.map +1 -0
  71. package/dist/simulation/GatewayDecisionView.d.ts +10 -0
  72. package/dist/simulation/GatewayDecisionView.d.ts.map +1 -0
  73. package/dist/ui/DecisionCard.d.ts +8 -0
  74. package/dist/ui/DecisionCard.d.ts.map +1 -0
  75. package/dist/ui/OutcomeBadge.d.ts +6 -0
  76. package/dist/ui/OutcomeBadge.d.ts.map +1 -0
  77. package/dist/ui/SimpleStartForm.d.ts +16 -0
  78. package/dist/ui/SimpleStartForm.d.ts.map +1 -0
  79. package/dist/ui/SimpleStartFormRenderer.d.ts +6 -0
  80. package/dist/ui/SimpleStartFormRenderer.d.ts.map +1 -0
  81. package/dist/ui/StartDialog.d.ts +40 -0
  82. package/dist/ui/StartDialog.d.ts.map +1 -0
  83. package/dist/ui/VariablesPanel.d.ts +34 -0
  84. package/dist/ui/VariablesPanel.d.ts.map +1 -0
  85. package/dist/ui/startForm.d.ts +17 -0
  86. package/dist/ui/startForm.d.ts.map +1 -0
  87. package/dist/utils/badgePosition.d.ts +10 -0
  88. package/dist/utils/badgePosition.d.ts.map +1 -0
  89. package/dist/utils/diagramElements.d.ts +7 -0
  90. package/dist/utils/diagramElements.d.ts.map +1 -0
  91. package/dist/utils/dom.d.ts +5 -0
  92. package/dist/utils/dom.d.ts.map +1 -0
  93. package/dist/utils/moddle.d.ts +8 -0
  94. package/dist/utils/moddle.d.ts.map +1 -0
  95. package/dist/utils/objects.d.ts +3 -0
  96. package/dist/utils/objects.d.ts.map +1 -0
  97. package/dist/utils/popoverPlacement.d.ts +18 -0
  98. package/dist/utils/popoverPlacement.d.ts.map +1 -0
  99. package/dist/utils/shadow.d.ts +2 -0
  100. package/dist/utils/shadow.d.ts.map +1 -0
  101. package/dist/utils/variables.d.ts +5 -0
  102. package/dist/utils/variables.d.ts.map +1 -0
  103. package/package.json +80 -3
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # @emaarco/bpmn-js-data-simulation
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@emaarco/bpmn-js-data-simulation.svg)](https://www.npmjs.com/package/@emaarco/bpmn-js-data-simulation)
4
+ [![CI](https://github.com/emaarco/bpmn-js-data-simulation/actions/workflows/ci.yml/badge.svg)](https://github.com/emaarco/bpmn-js-data-simulation/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/LICENSE)
6
+
7
+ An add-on for [bpmn-js-token-simulation](https://github.com/bpmn-io/bpmn-js-token-simulation) that runs BPMN
8
+ processes **with data**: start variables, io mappings and gateway conditions, evaluated the way the
9
+ engine would. No running engine, no clicking the path by hand.
10
+
11
+ ![Starting a Zeebe process with a scenario, hovering gateways to see why they took their flow, and fixing a missing variable to continue a stuck token](https://raw.githubusercontent.com/emaarco/bpmn-js-data-simulation/main/docs/screenshots/simulation.gif)
12
+
13
+ ## Why
14
+
15
+ The token simulation shows which paths a process _can_ take. Gateways pick their flow by click, and
16
+ conditions, default flows and io mappings are ignored. That explains BPMN, but not _why_ a process
17
+ takes a path, and checking a condition still needs a deployed process and a running engine.
18
+
19
+ bpmn-js-data-simulation evaluates what the process is modeled with:
20
+
21
+ - **Shows why a path is taken.** Gateways that decided turn green; hover one and a card lists its
22
+ conditions, their results and the values they read. Click the gateway to keep the card open.
23
+ - **What-if on the spot.** Start an instance from a scenario, change any value in the start dialog,
24
+ or edit the variables of a running instance.
25
+ - **Behaves like the engine.** Zeebe conditions and mappings are FEEL, Camunda 7 ones JUEL, with
26
+ each engine's rules for task results and variables.
27
+ - **Fails visibly.** When no flow matches or a condition fails, the token stops at the gateway and
28
+ it turns red, as an incident would; its card tells why. Fix the data and continue.
29
+ - **Drop-in.** One more module next to the token simulation, in any bpmn-js modeler or viewer. A
30
+ **Data Simulation** switch next to the token simulation's own turns it off for the plain click-through.
31
+
32
+ ## Install
33
+
34
+ ```
35
+ npm install @emaarco/bpmn-js-data-simulation
36
+ ```
37
+
38
+ `bpmn-js` (>= 18) and `bpmn-js-token-simulation` (`1.0.0`, pinned) are peer dependencies.
39
+
40
+ ## Quick start
41
+
42
+ ```ts
43
+ import BpmnModeler from 'bpmn-js/lib/Modeler'
44
+ import TokenSimulationModule from 'bpmn-js-token-simulation'
45
+ import DataSimulationModule from '@emaarco/bpmn-js-data-simulation'
46
+ import zeebeModdle from 'zeebe-bpmn-moddle/resources/zeebe.json'
47
+ import 'bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css'
48
+ import '@emaarco/bpmn-js-data-simulation/assets/bpmn-js-data-simulation.css'
49
+
50
+ const modeler = new BpmnModeler({
51
+ container: '#canvas',
52
+ additionalModules: [TokenSimulationModule, DataSimulationModule],
53
+ moddleExtensions: { zeebe: zeebeModdle },
54
+ dataSimulation: { engine: 'zeebe', scenarios },
55
+ })
56
+ ```
57
+
58
+ Switch on the token simulation and press ▶ on a start event: a dialog asks for the start variables
59
+ the process reads, prefilled from a scenario. The [demo](https://emaarco.github.io/bpmn-js-data-simulation/)
60
+ runs Zeebe and Camunda 7 examples. Details: [usage](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/usage.md).
61
+
62
+ ## What it covers
63
+
64
+ | Step | What happens |
65
+ | ---------------------------- | -------------------------------------------------------------------------------------- |
66
+ | Start | ▶ opens a form with the variables the process reads; a scenario prefills it |
67
+ | Tasks | Input and output mappings write process variables; task results come from the scenario |
68
+ | Gateways | Exclusive and inclusive gateways evaluate their conditions, including the default flow |
69
+ | No match or failed condition | The token waits at the gateway, marked red, until you fix the data |
70
+ | Unsupported condition | The gateway keeps the token simulation's click |
71
+ | Inspect | Gateway cards explain each decision; Process Data in the palette shows the variables |
72
+
73
+ ## Scenarios
74
+
75
+ Named sets of start variables and mocked task results, in a JSON file next to the diagram.
76
+
77
+ Details: [scenarios](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/scenarios.md).
78
+
79
+ ## Zeebe and Camunda 7
80
+
81
+ `engine: 'zeebe'` reads `zeebe:ioMapping` and evaluates FEEL; `engine: 'camunda7'` reads
82
+ `camunda:inputOutput` and evaluates a subset of JUEL (also for Operaton and CIB seven).
83
+
84
+ Details: [engines](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/engines.md).
85
+
86
+ ## Documentation
87
+
88
+ - [Usage](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/usage.md): setup, start dialog, decision cards, Process Data and API
89
+ - [Scenarios](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/scenarios.md): the scenario file and task results
90
+ - [Engines](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/engines.md): Zeebe and Camunda 7 semantics, gateways, the JUEL subset
91
+ - [How it works](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/docs/how-it-works.md): how it plugs into the token simulation, decisions and limits
92
+
93
+ ## Contributing
94
+
95
+ See [CONTRIBUTING.md](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/CONTRIBUTING.md).
96
+
97
+ ## License
98
+
99
+ [MIT](https://github.com/emaarco/bpmn-js-data-simulation/blob/main/LICENSE) © Marco Schäck
@@ -0,0 +1,127 @@
1
+ :root {
2
+ --bds-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
3
+ --bds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
4
+
5
+ --bds-surface: #ffffff;
6
+ --bds-ink: #1d1d1d;
7
+ --bds-muted: #5b5b5b;
8
+ --bds-line: #e6e2e2;
9
+ --bds-code-bg: rgba(29, 29, 29, 0.05);
10
+
11
+ --bds-accent: #335de5;
12
+ --bds-accent-ink: #2b50d4;
13
+ --bds-accent-soft: rgba(43, 80, 212, 0.12);
14
+ --bds-on-accent: #ffffff;
15
+
16
+ --bds-success: #0b7a55;
17
+ --bds-success-soft: rgba(11, 122, 85, 0.12);
18
+ --bds-warning: #92610a;
19
+ --bds-warning-soft: rgba(146, 97, 10, 0.12);
20
+ --bds-danger: #c92a2a;
21
+ --bds-danger-soft: rgba(201, 42, 42, 0.12);
22
+ --bds-gateway-decided-fill: #e7f3ee;
23
+ --bds-gateway-stuck-fill: #fbe9e9;
24
+
25
+ --bds-space-1: 4px;
26
+ --bds-space-2: 8px;
27
+ --bds-space-3: 16px;
28
+
29
+ --bds-radius-sm: 6px;
30
+ --bds-radius-md: 12px;
31
+ --bds-radius-lg: 16px;
32
+ --bds-radius-pill: 999px;
33
+
34
+ --bds-shadow-1: 0 1px 2px rgba(29, 29, 29, 0.06), 0 1px 3px rgba(29, 29, 29, 0.1);
35
+ --bds-shadow-2: 0 4px 12px rgba(29, 29, 29, 0.1);
36
+ --bds-shadow-3: 0 12px 32px rgba(29, 29, 29, 0.16);
37
+
38
+ --bds-motion-fast: 150ms;
39
+ --bds-ease: cubic-bezier(0.4, 0, 0.2, 1);
40
+ }
41
+
42
+ .bjs-container.simulation .djs-overlays .djs-overlay.djs-overlay-bds-flow-outcome {
43
+ display: block !important;
44
+ }
45
+
46
+ .bjs-container:has(.bds-palette-entry.active) .bts-log {
47
+ right: 332px;
48
+ }
49
+
50
+ .bjs-container.simulation .djs-element.bds-gateway--decided,
51
+ .bjs-container.simulation .djs-element.bds-gateway--stuck {
52
+ cursor: pointer;
53
+ }
54
+
55
+ .djs-element.bds-gateway--decided .djs-visual > polygon {
56
+ fill: var(--bds-gateway-decided-fill) !important;
57
+ stroke: var(--bds-success) !important;
58
+ }
59
+
60
+ .djs-element.bds-gateway--stuck .djs-visual > polygon {
61
+ fill: var(--bds-gateway-stuck-fill) !important;
62
+ stroke: var(--bds-danger) !important;
63
+ }
64
+
65
+ .djs-element.bds-gateway--decided.hover .djs-visual > polygon,
66
+ .djs-element.bds-gateway--stuck.hover .djs-visual > polygon {
67
+ stroke-width: 3px !important;
68
+ }
69
+
70
+ .bds-palette-entry svg {
71
+ width: 1em;
72
+ height: 1em;
73
+ fill: none;
74
+ stroke: currentColor;
75
+ stroke-width: 1.6;
76
+ stroke-linecap: round;
77
+ stroke-linejoin: round;
78
+ }
79
+
80
+ .bds-palette-entry[hidden] {
81
+ display: none;
82
+ }
83
+
84
+ .bds-data-toggle {
85
+ position: absolute;
86
+ top: 20px;
87
+ left: 200px;
88
+ display: none;
89
+ align-items: center;
90
+ gap: 0.25em;
91
+ padding: 6px;
92
+ font-family: inherit;
93
+ font-size: 16px;
94
+ line-height: normal;
95
+ color: var(--token-simulation-control-color, #222);
96
+ background-color: var(--token-simulation-control-background, #f1f2f4);
97
+ border: none;
98
+ border-radius: var(--button-border-radius, 3px);
99
+ cursor: pointer;
100
+ user-select: none;
101
+ }
102
+
103
+ .bjs-container.simulation .bds-data-toggle {
104
+ display: inline-flex;
105
+ }
106
+
107
+ .bds-data-toggle.active,
108
+ .bds-data-toggle:hover {
109
+ color: var(--token-simulation-control-surface, #fff);
110
+ background-color: var(--token-simulation-primary, #0067cc);
111
+ }
112
+
113
+ .bds-data-toggle-icon {
114
+ display: inline-flex;
115
+ }
116
+
117
+ .bds-data-toggle-icon svg {
118
+ height: 1em;
119
+ fill: none;
120
+ stroke: currentColor;
121
+ stroke-width: 2;
122
+ }
123
+
124
+ .bds-data-toggle-icon circle {
125
+ fill: currentColor;
126
+ stroke: none;
127
+ }
@@ -0,0 +1,11 @@
1
+ import type { Evaluation, GatewayKind, OutgoingFlow, RoutingDecision } from './model.js';
2
+ export type EvaluateCondition = (expression: string) => Evaluation;
3
+ export declare class GatewayRouter {
4
+ route(kind: GatewayKind, outgoing: OutgoingFlow[], evaluateCondition: EvaluateCondition): RoutingDecision;
5
+ private evaluateFlow;
6
+ private isDecisive;
7
+ private withDefault;
8
+ private stuck;
9
+ private describe;
10
+ }
11
+ //# sourceMappingURL=GatewayRouter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GatewayRouter.d.ts","sourceRoot":"","sources":["../../src/domain/GatewayRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA+B,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAErH,MAAM,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAE,MAAM,KAAK,UAAU,CAAA;AAElE,qBAAa,aAAa;IACxB,KAAK,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,GAAG,eAAe;IAoCzG,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,QAAQ;CAIjB"}
@@ -0,0 +1,4 @@
1
+ export declare class ScenarioError extends Error {
2
+ name: string;
3
+ }
4
+ //# sourceMappingURL=ScenarioError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScenarioError.d.ts","sourceRoot":"","sources":["../../src/domain/ScenarioError.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;IAC7B,IAAI,SAAkB;CAChC"}
@@ -0,0 +1,7 @@
1
+ import type { Scenario } from './model.js';
2
+ export declare class ScenarioParser {
3
+ parse(input: unknown): Scenario[];
4
+ private parseScenario;
5
+ private assertUniqueIds;
6
+ }
7
+ //# sourceMappingURL=ScenarioParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScenarioParser.d.ts","sourceRoot":"","sources":["../../src/domain/ScenarioParser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAa,MAAM,YAAY,CAAA;AAGrD,qBAAa,cAAc;IACzB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,EAAE;IAUjC,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,eAAe;CASxB"}
@@ -0,0 +1,7 @@
1
+ import type { FieldValue, StartField, Variables } from './model.js';
2
+ export declare class StartFieldCodec {
3
+ parse(field: StartField, raw: string | boolean): FieldValue;
4
+ format(field: StartField, value: unknown): string | boolean;
5
+ apply(base: Variables, values: Record<string, unknown>): Variables;
6
+ }
7
+ //# sourceMappingURL=StartFieldCodec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartFieldCodec.d.ts","sourceRoot":"","sources":["../../src/domain/StartFieldCodec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEnE,qBAAa,eAAe;IAC1B,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU;IA0B3D,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO;IAO3D,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;CAQnE"}
@@ -0,0 +1,7 @@
1
+ import type { ElementVariableUsage, StartField, StartFieldHints } from './model.js';
2
+ export declare class StartFieldDeriver {
3
+ derive(usages: ElementVariableUsage[], { examples, taskResultNames }?: StartFieldHints): StartField[];
4
+ private topLevelName;
5
+ private inferType;
6
+ }
7
+ //# sourceMappingURL=StartFieldDeriver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StartFieldDeriver.d.ts","sourceRoot":"","sources":["../../src/domain/StartFieldDeriver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAA;AAEnG,qBAAa,iBAAiB;IAC5B,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,EAAE,EAAE,QAAa,EAAE,eAAoB,EAAE,GAAE,eAAoB,GAAG,UAAU,EAAE;IAuBnH,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,SAAS;CAOlB"}
@@ -0,0 +1,64 @@
1
+ export type Variables = Record<string, unknown>;
2
+ export type Evaluation = {
3
+ ok: true;
4
+ value: unknown;
5
+ } | {
6
+ ok: false;
7
+ reason: string;
8
+ };
9
+ export interface Mapping {
10
+ source: string;
11
+ target: string;
12
+ }
13
+ export type GatewayKind = 'exclusive' | 'inclusive';
14
+ export interface OutgoingFlow {
15
+ id: string;
16
+ name?: string;
17
+ expression?: string;
18
+ isDefault: boolean;
19
+ }
20
+ export type FlowOutcome = 'taken' | 'not-taken' | 'error' | 'skipped';
21
+ export interface FlowEvaluation {
22
+ flow: OutgoingFlow;
23
+ outcome: FlowOutcome;
24
+ value?: unknown;
25
+ reason?: string;
26
+ }
27
+ export interface RoutingDecision {
28
+ flows: FlowEvaluation[];
29
+ takenFlowIds: string[];
30
+ stuckReason?: string;
31
+ }
32
+ export interface Scenario {
33
+ id: string;
34
+ name: string;
35
+ description?: string;
36
+ variables: Variables;
37
+ taskResults: Record<string, Variables>;
38
+ }
39
+ export type StartFieldType = 'number' | 'boolean' | 'text' | 'json' | 'auto';
40
+ export interface StartField {
41
+ name: string;
42
+ type: StartFieldType;
43
+ usedBy: string[];
44
+ }
45
+ export interface ElementVariableUsage {
46
+ elementName: string;
47
+ conditionReads: string[];
48
+ inputReads: string[];
49
+ inputTargets: string[];
50
+ outputReads: string[];
51
+ outputTargets: string[];
52
+ }
53
+ export type FieldValue = {
54
+ ok: true;
55
+ value: unknown;
56
+ } | {
57
+ ok: false;
58
+ reason: string;
59
+ };
60
+ export interface StartFieldHints {
61
+ examples?: Variables[];
62
+ taskResultNames?: string[];
63
+ }
64
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/domain/model.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE/C,MAAM,MAAM,UAAU,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAErF,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,WAAW,CAAA;AAEnD,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AAErE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,cAAc,EAAE,CAAA;IACvB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;CACvC;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAE5E,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,aAAa,EAAE,MAAM,EAAE,CAAA;CACxB;AAED,MAAM,MAAM,UAAU,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAErF,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;CAC3B"}
@@ -0,0 +1,6 @@
1
+ import type { EngineAdapter, EngineId } from './types.js';
2
+ export declare class EngineRegistry {
3
+ private readonly engines;
4
+ resolve(engine: EngineId | EngineAdapter): EngineAdapter;
5
+ }
6
+ //# sourceMappingURL=EngineRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EngineRegistry.d.ts","sourceRoot":"","sources":["../../src/engines/EngineRegistry.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEzD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAGvB;IAED,OAAO,CAAC,MAAM,EAAE,QAAQ,GAAG,aAAa,GAAG,aAAa;CAQzD"}
@@ -0,0 +1,17 @@
1
+ import type { Evaluation, Mapping, Variables } from '../../domain/model.js';
2
+ import type { EngineAdapter, ModdleElement, TaskResultPropagation } from '../types.js';
3
+ export declare class Camunda7Engine implements EngineAdapter {
4
+ readonly id = "camunda7";
5
+ readonly label = "Camunda 7";
6
+ readonly expressionLanguage = "JUEL";
7
+ readonly taskResultPropagation: TaskResultPropagation;
8
+ writeVariable(variables: Variables, target: string, value: unknown): Variables;
9
+ readInputMappings(element: ModdleElement): Mapping[];
10
+ readOutputMappings(element: ModdleElement): Mapping[];
11
+ readCondition(sequenceFlow: ModdleElement): string | undefined;
12
+ canEvaluate(expression: string): boolean;
13
+ evaluate(expression: string, variables: Variables): Evaluation;
14
+ readVariableNames(expression: string): string[];
15
+ private readMappings;
16
+ }
17
+ //# sourceMappingURL=Camunda7Engine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Camunda7Engine.d.ts","sourceRoot":"","sources":["../../../src/engines/camunda7/Camunda7Engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAE3E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAGtF,qBAAa,cAAe,YAAW,aAAa;IAClD,QAAQ,CAAC,EAAE,cAAa;IACxB,QAAQ,CAAC,KAAK,eAAc;IAC5B,QAAQ,CAAC,kBAAkB,UAAS;IACpC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAAW;IAEhE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAI9E,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE;IAIpD,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE;IAIrD,aAAa,CAAC,YAAY,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS;IAM9D,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IASxC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU;IAW9D,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;IAQ/C,OAAO,CAAC,YAAY;CASrB"}
@@ -0,0 +1,4 @@
1
+ export declare class JuelError extends Error {
2
+ name: string;
3
+ }
4
+ //# sourceMappingURL=JuelError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JuelError.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/JuelError.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAU,SAAQ,KAAK;IACzB,IAAI,SAAc;CAC5B"}
@@ -0,0 +1,18 @@
1
+ import type { Variables } from '../../../domain/model.js';
2
+ import type { JuelNode } from './juelSyntax.js';
3
+ export declare class JuelEvaluator {
4
+ private readonly variables;
5
+ constructor(variables: Variables);
6
+ evaluate(node: JuelNode): unknown;
7
+ coerceToString(value: unknown): string;
8
+ private readMember;
9
+ private evaluateUnary;
10
+ private evaluateBinary;
11
+ private isNull;
12
+ private areEqual;
13
+ private compare;
14
+ private coerceToNumber;
15
+ private coerceToBoolean;
16
+ private isEmpty;
17
+ }
18
+ //# sourceMappingURL=JuelEvaluator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JuelEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/JuelEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAGzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAI/C,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO;IAsBjC,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM;IAKtC,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,cAAc;IAsCtB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,OAAO;IAKf,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,OAAO;CAMhB"}
@@ -0,0 +1,6 @@
1
+ import { type JuelToken } from './juelSyntax.js';
2
+ export declare class JuelLexer {
3
+ tokenize(source: string): JuelToken[];
4
+ private readString;
5
+ }
6
+ //# sourceMappingURL=JuelLexer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JuelLexer.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/JuelLexer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuC,MAAM,iBAAiB,CAAA;AAErF,qBAAa,SAAS;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE;IA+BrC,OAAO,CAAC,UAAU;CAgBnB"}
@@ -0,0 +1,19 @@
1
+ import { type JuelNode } from './juelSyntax.js';
2
+ export declare class JuelParser {
3
+ private readonly tokens;
4
+ private position;
5
+ constructor(source: string);
6
+ parse(): JuelNode;
7
+ private parseExpression;
8
+ private parseBinary;
9
+ private parseUnary;
10
+ private parseMember;
11
+ private parsePrimary;
12
+ private identifierOrLiteral;
13
+ private peek;
14
+ private next;
15
+ private accept;
16
+ private acceptAny;
17
+ private expect;
18
+ }
19
+ //# sourceMappingURL=JuelParser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JuelParser.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/JuelParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,QAAQ,EAAkB,MAAM,iBAAiB,CAAA;AAElF,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAI;gBAER,MAAM,EAAE,MAAM;IAI1B,KAAK,IAAI,QAAQ;IAOjB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,WAAW;IAkBnB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,MAAM;CAGf"}
@@ -0,0 +1,11 @@
1
+ import type { Variables } from '../../../domain/model.js';
2
+ export declare class JuelTemplate {
3
+ private readonly parts;
4
+ private constructor();
5
+ static parse(text: string): JuelTemplate;
6
+ evaluate(variables: Variables): unknown;
7
+ variableNames(): string[];
8
+ private static findExpressionStart;
9
+ private static findExpressionEnd;
10
+ }
11
+ //# sourceMappingURL=JuelTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JuelTemplate.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/JuelTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAQzD,qBAAa,YAAY;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK;IAA1C,OAAO;IAEP,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY;IAiBxC,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO;IAWvC,aAAa,IAAI,MAAM,EAAE;IAuBzB,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAQlC,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAejC"}
@@ -0,0 +1,34 @@
1
+ export type JuelNode = {
2
+ type: 'literal';
3
+ value: unknown;
4
+ } | {
5
+ type: 'identifier';
6
+ name: string;
7
+ } | {
8
+ type: 'member';
9
+ object: JuelNode;
10
+ property: JuelNode;
11
+ } | {
12
+ type: 'unary';
13
+ operator: string;
14
+ operand: JuelNode;
15
+ } | {
16
+ type: 'binary';
17
+ operator: string;
18
+ left: JuelNode;
19
+ right: JuelNode;
20
+ } | {
21
+ type: 'conditional';
22
+ test: JuelNode;
23
+ consequent: JuelNode;
24
+ alternate: JuelNode;
25
+ };
26
+ export interface JuelToken {
27
+ kind: 'number' | 'string' | 'identifier' | 'operator';
28
+ text: string;
29
+ value?: unknown;
30
+ }
31
+ export declare const KEYWORD_OPERATORS: Record<string, string>;
32
+ export declare const SYMBOL_OPERATORS: string[];
33
+ export declare const BINARY_PRECEDENCE: string[][];
34
+ //# sourceMappingURL=juelSyntax.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"juelSyntax.d.ts","sourceRoot":"","sources":["../../../../src/engines/camunda7/juel/juelSyntax.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACpC;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,UAAU,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE,CAAA;AAEtF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,GAAG,UAAU,CAAA;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAapD,CAAA;AAED,eAAO,MAAM,gBAAgB,UAsB5B,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAAE,EAOvC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Camunda7Engine } from './camunda7/Camunda7Engine.js';
2
+ import { ZeebeEngine } from './zeebe/ZeebeEngine.js';
3
+ export declare const zeebeEngine: ZeebeEngine;
4
+ export declare const camunda7Engine: Camunda7Engine;
5
+ //# sourceMappingURL=engines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engines.d.ts","sourceRoot":"","sources":["../../src/engines/engines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,eAAO,MAAM,WAAW,aAAoB,CAAA;AAC5C,eAAO,MAAM,cAAc,gBAAuB,CAAA"}
@@ -0,0 +1,21 @@
1
+ import type { Evaluation, Mapping, Variables } from '../domain/model.js';
2
+ export type EngineId = 'zeebe' | 'camunda7';
3
+ export interface ModdleElement {
4
+ $type: string;
5
+ [property: string]: unknown;
6
+ }
7
+ export type TaskResultPropagation = 'always' | 'without-output-mappings';
8
+ export interface EngineAdapter {
9
+ id: EngineId;
10
+ label: string;
11
+ expressionLanguage: string;
12
+ taskResultPropagation: TaskResultPropagation;
13
+ writeVariable(variables: Variables, target: string, value: unknown): Variables;
14
+ readInputMappings(element: ModdleElement): Mapping[];
15
+ readOutputMappings(element: ModdleElement): Mapping[];
16
+ readCondition(sequenceFlow: ModdleElement): string | undefined;
17
+ canEvaluate(expression: string): boolean;
18
+ evaluate(expression: string, variables: Variables): Evaluation;
19
+ readVariableNames(expression: string): string[];
20
+ }
21
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/engines/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAExE,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAA;AAE3C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;CAC5B;AAED,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,yBAAyB,CAAA;AAExE,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,QAAQ,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,kBAAkB,EAAE,MAAM,CAAA;IAC1B,qBAAqB,EAAE,qBAAqB,CAAA;IAC5C,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9E,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE,CAAA;IACpD,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE,CAAA;IACrD,aAAa,CAAC,YAAY,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAAA;IAC9D,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAA;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU,CAAA;IAC9D,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAChD"}
@@ -0,0 +1,21 @@
1
+ import type { Evaluation, Mapping, Variables } from '../../domain/model.js';
2
+ import type { EngineAdapter, ModdleElement, TaskResultPropagation } from '../types.js';
3
+ export declare class ZeebeEngine implements EngineAdapter {
4
+ readonly id = "zeebe";
5
+ readonly label = "Zeebe";
6
+ readonly expressionLanguage = "FEEL";
7
+ readonly taskResultPropagation: TaskResultPropagation;
8
+ writeVariable(variables: Variables, target: string, value: unknown): Variables;
9
+ readInputMappings(element: ModdleElement): Mapping[];
10
+ readOutputMappings(element: ModdleElement): Mapping[];
11
+ readCondition(sequenceFlow: ModdleElement): string | undefined;
12
+ canEvaluate(expression: string): boolean;
13
+ evaluate(expression: string, variables: Variables): Evaluation;
14
+ readVariableNames(expression: string): string[];
15
+ private readMappings;
16
+ private toVariableValue;
17
+ private parsesAsFeel;
18
+ private isFeel;
19
+ private feelBody;
20
+ }
21
+ //# sourceMappingURL=ZeebeEngine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZeebeEngine.d.ts","sourceRoot":"","sources":["../../../src/engines/zeebe/ZeebeEngine.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAG3E,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAItF,qBAAa,WAAY,YAAW,aAAa;IAC/C,QAAQ,CAAC,EAAE,WAAU;IACrB,QAAQ,CAAC,KAAK,WAAU;IACxB,QAAQ,CAAC,kBAAkB,UAAS;IACpC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAA4B;IAEjF,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAI9E,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE;IAIpD,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,EAAE;IAIrD,aAAa,CAAC,YAAY,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS;IAI9D,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAIxC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,UAAU;IAgB9D,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE;IAiB/C,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,eAAe;IAKvB,OAAO,CAAC,YAAY;IASpB,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,QAAQ;CAGjB"}