@bpmnkit/core 0.8.0 → 1.1.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.
- package/README.md +49 -3
- package/dist/bpmn/agentic.js +3 -1
- package/dist/bpmn/auto-layout.js +184 -15
- package/dist/bpmn/bpmn-builder.d.ts +1 -12
- package/dist/bpmn/bpmn-builder.js +71 -10
- package/dist/bpmn/bpmn-model.d.ts +78 -0
- package/dist/bpmn/bpmn-parser.js +199 -41
- package/dist/bpmn/bpmn-serializer.js +121 -72
- package/dist/bpmn/bpmnlint.d.ts +153 -0
- package/dist/bpmn/bpmnlint.js +364 -0
- package/dist/bpmn/camunda-compat-data.d.ts +165 -0
- package/dist/bpmn/camunda-compat-data.js +423 -0
- package/dist/bpmn/camunda-compat-feel.d.ts +68 -0
- package/dist/bpmn/camunda-compat-feel.js +338 -0
- package/dist/bpmn/camunda-compat.d.ts +120 -0
- package/dist/bpmn/camunda-compat.js +1677 -0
- package/dist/bpmn/camunda7/juel.d.ts +41 -0
- package/dist/bpmn/camunda7/juel.js +333 -0
- package/dist/bpmn/camunda7/migrate.d.ts +72 -0
- package/dist/bpmn/camunda7/migrate.js +1152 -0
- package/dist/bpmn/compact-stream.d.ts +64 -0
- package/dist/bpmn/compact-stream.js +167 -0
- package/dist/bpmn/full-operations.js +5 -2
- package/dist/bpmn/label-style.d.ts +51 -0
- package/dist/bpmn/label-style.js +116 -0
- package/dist/bpmn/lint.d.ts +23 -3
- package/dist/bpmn/lint.js +47 -10
- package/dist/bpmn/optimize/bpmnlint-rules.d.ts +31 -0
- package/dist/bpmn/optimize/bpmnlint-rules.js +916 -0
- package/dist/bpmn/optimize/deploy.d.ts +8 -2
- package/dist/bpmn/optimize/deploy.js +16 -3
- package/dist/bpmn/optimize/index.js +11 -2
- package/dist/bpmn/optimize/types.d.ts +14 -0
- package/dist/bpmn/optimize/variable-flow.js +4 -1
- package/dist/bpmn/process-types.d.ts +112 -0
- package/dist/bpmn/process-types.js +490 -0
- package/dist/bpmn/svg.js +51 -22
- package/dist/dmn/dmn-parser.js +4 -3
- package/dist/doc/docx.d.ts +20 -0
- package/dist/doc/docx.js +253 -0
- package/dist/doc/html.d.ts +21 -0
- package/dist/doc/html.js +303 -0
- package/dist/doc/index.d.ts +7 -0
- package/dist/doc/index.js +5 -0
- package/dist/doc/markdown.d.ts +11 -0
- package/dist/doc/markdown.js +160 -0
- package/dist/doc/model.d.ts +129 -0
- package/dist/doc/model.js +617 -0
- package/dist/doc/zip.d.ts +5 -0
- package/dist/doc/zip.js +75 -0
- package/dist/form/form-parser.js +29 -28
- package/dist/index.d.ts +18 -0
- package/dist/index.js +9 -0
- package/dist/layout/annotations.d.ts +4 -2
- package/dist/layout/annotations.js +31 -2
- package/dist/layout/collaboration/ordering.d.ts +8 -0
- package/dist/layout/collaboration/ordering.js +57 -18
- package/dist/layout/orthogonal.d.ts +32 -0
- package/dist/layout/orthogonal.js +367 -0
- package/dist/layout/repair.d.ts +31 -0
- package/dist/layout/repair.js +220 -0
- package/dist/layout/semantic/route.js +45 -3
- package/dist/node/bpmnlint.d.ts +109 -0
- package/dist/node/bpmnlint.js +198 -0
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.js +1 -0
- package/dist/xml/xml-patch.d.ts +21 -0
- package/dist/xml/xml-patch.js +27 -1
- package/package.json +5 -2
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which BPMN constructs and Zeebe properties each Camunda 8 version supports —
|
|
3
|
+
* the data behind `analyzeCamundaCompat`.
|
|
4
|
+
*
|
|
5
|
+
* Taken from `bpmnlint-plugin-camunda-compat` 2.61.0 (MIT, © Camunda Services
|
|
6
|
+
* GmbH), the rule set Camunda Modeler lints with through `@camunda/linting`
|
|
7
|
+
* 3.57.0:
|
|
8
|
+
*
|
|
9
|
+
* - `index.js` — which rule each `camunda-cloud-X-Y` config enables;
|
|
10
|
+
* - `rules/camunda-cloud/element-type/config.js` — element and event
|
|
11
|
+
* definition support per version;
|
|
12
|
+
* - `rules/camunda-cloud/implementation/config.js` — which task implementation
|
|
13
|
+
* each element takes, from which version;
|
|
14
|
+
* - `rules/camunda-cloud/timer/config.js` — timer properties per event type;
|
|
15
|
+
* - `rules/camunda-cloud/connector-properties/config.js` — inbound connector
|
|
16
|
+
* properties per version;
|
|
17
|
+
* - the version constants inside the individual rules.
|
|
18
|
+
*
|
|
19
|
+
* The FEEL built-in table is from `@camunda/feel-builtins` 1.4.1, which the
|
|
20
|
+
* plugin's `feel-compatibility` rule reads.
|
|
21
|
+
*
|
|
22
|
+
* When the plugin moves, update the tables here and `CAMUNDA_COMPAT_PLUGIN_VERSION`
|
|
23
|
+
* together; nothing else in BPMN Kit hard-codes a Camunda version for these checks.
|
|
24
|
+
*
|
|
25
|
+
* @packageDocumentation
|
|
26
|
+
*/
|
|
27
|
+
/** The `bpmnlint-plugin-camunda-compat` release these tables were taken from. */
|
|
28
|
+
export const CAMUNDA_COMPAT_PLUGIN_VERSION = "2.61.0";
|
|
29
|
+
/**
|
|
30
|
+
* The Camunda 8 (and Camunda Cloud 1.x) versions the plugin ships a
|
|
31
|
+
* `camunda-cloud-X-Y` config for, oldest first.
|
|
32
|
+
*/
|
|
33
|
+
export const CAMUNDA_COMPAT_VERSIONS = [
|
|
34
|
+
"1.0",
|
|
35
|
+
"1.1",
|
|
36
|
+
"1.2",
|
|
37
|
+
"1.3",
|
|
38
|
+
"8.0",
|
|
39
|
+
"8.1",
|
|
40
|
+
"8.2",
|
|
41
|
+
"8.3",
|
|
42
|
+
"8.4",
|
|
43
|
+
"8.5",
|
|
44
|
+
"8.6",
|
|
45
|
+
"8.7",
|
|
46
|
+
"8.8",
|
|
47
|
+
"8.9",
|
|
48
|
+
"8.10",
|
|
49
|
+
];
|
|
50
|
+
/**
|
|
51
|
+
* First version supporting each element, keyed by BPMN type. Events map their
|
|
52
|
+
* event definition (or `_` for none) to a version instead. A flow element whose
|
|
53
|
+
* type is absent — `bpmn:ComplexGateway`, `bpmn:Transaction` — is supported by
|
|
54
|
+
* no version.
|
|
55
|
+
*/
|
|
56
|
+
export const ELEMENT_SUPPORT = {
|
|
57
|
+
"bpmn:BoundaryEvent": {
|
|
58
|
+
"bpmn:CompensateEventDefinition": "8.5",
|
|
59
|
+
"bpmn:ConditionalEventDefinition": "8.9",
|
|
60
|
+
"bpmn:ErrorEventDefinition": "1.0",
|
|
61
|
+
"bpmn:EscalationEventDefinition": "8.2",
|
|
62
|
+
"bpmn:MessageEventDefinition": "1.0",
|
|
63
|
+
"bpmn:TimerEventDefinition": "1.0",
|
|
64
|
+
"bpmn:SignalEventDefinition": "8.3",
|
|
65
|
+
},
|
|
66
|
+
"bpmn:BusinessRuleTask": "1.1",
|
|
67
|
+
"bpmn:CallActivity": "1.0",
|
|
68
|
+
"bpmn:DataObject": "8.0",
|
|
69
|
+
"bpmn:DataObjectReference": "8.0",
|
|
70
|
+
"bpmn:DataStoreReference": "8.0",
|
|
71
|
+
"bpmn:EndEvent": {
|
|
72
|
+
_: "1.0",
|
|
73
|
+
"bpmn:CompensateEventDefinition": "8.5",
|
|
74
|
+
"bpmn:ErrorEventDefinition": "1.0",
|
|
75
|
+
"bpmn:EscalationEventDefinition": "8.2",
|
|
76
|
+
"bpmn:MessageEventDefinition": "1.2",
|
|
77
|
+
"bpmn:SignalEventDefinition": "8.3",
|
|
78
|
+
"bpmn:TerminateEventDefinition": "8.1",
|
|
79
|
+
},
|
|
80
|
+
"bpmn:EventBasedGateway": "1.0",
|
|
81
|
+
"bpmn:ExclusiveGateway": "1.0",
|
|
82
|
+
"bpmn:InclusiveGateway": "8.1",
|
|
83
|
+
"bpmn:IntermediateCatchEvent": {
|
|
84
|
+
"bpmn:ConditionalEventDefinition": "8.9",
|
|
85
|
+
"bpmn:MessageEventDefinition": "1.0",
|
|
86
|
+
"bpmn:LinkEventDefinition": "8.2",
|
|
87
|
+
"bpmn:TimerEventDefinition": "1.0",
|
|
88
|
+
"bpmn:SignalEventDefinition": "8.3",
|
|
89
|
+
},
|
|
90
|
+
"bpmn:IntermediateThrowEvent": {
|
|
91
|
+
_: "1.1",
|
|
92
|
+
"bpmn:CompensateEventDefinition": "8.5",
|
|
93
|
+
"bpmn:EscalationEventDefinition": "8.2",
|
|
94
|
+
"bpmn:LinkEventDefinition": "8.2",
|
|
95
|
+
"bpmn:MessageEventDefinition": "1.2",
|
|
96
|
+
"bpmn:SignalEventDefinition": "8.3",
|
|
97
|
+
},
|
|
98
|
+
"bpmn:ManualTask": "1.1",
|
|
99
|
+
"bpmn:ParallelGateway": "1.0",
|
|
100
|
+
"bpmn:ReceiveTask": "1.0",
|
|
101
|
+
"bpmn:ScriptTask": "1.1",
|
|
102
|
+
"bpmn:SendTask": "1.1",
|
|
103
|
+
"bpmn:ServiceTask": "1.0",
|
|
104
|
+
"bpmn:StartEvent": {
|
|
105
|
+
_: "1.0",
|
|
106
|
+
"bpmn:ConditionalEventDefinition": "8.9",
|
|
107
|
+
"bpmn:ErrorEventDefinition": "1.0",
|
|
108
|
+
"bpmn:EscalationEventDefinition": "8.2",
|
|
109
|
+
"bpmn:MessageEventDefinition": "1.0",
|
|
110
|
+
"bpmn:SignalEventDefinition": "8.2",
|
|
111
|
+
"bpmn:TimerEventDefinition": "1.0",
|
|
112
|
+
},
|
|
113
|
+
"bpmn:SubProcess": "1.0",
|
|
114
|
+
"bpmn:Task": "8.2",
|
|
115
|
+
"bpmn:UserTask": "1.0",
|
|
116
|
+
"bpmn:AdHocSubProcess": "8.7",
|
|
117
|
+
};
|
|
118
|
+
/** First version each element accepts each implementation kind in. */
|
|
119
|
+
export const IMPLEMENTATION_SUPPORT = {
|
|
120
|
+
calledDecision: {
|
|
121
|
+
"bpmn:BusinessRuleTask": "1.3",
|
|
122
|
+
},
|
|
123
|
+
taskDefinition: {
|
|
124
|
+
"bpmn:AdHocSubProcess": "8.8",
|
|
125
|
+
"bpmn:BusinessRuleTask": "1.1",
|
|
126
|
+
"bpmn:IntermediateThrowEvent": { "bpmn:MessageEventDefinition": "1.2" },
|
|
127
|
+
"bpmn:EndEvent": { "bpmn:MessageEventDefinition": "1.2" },
|
|
128
|
+
"bpmn:ScriptTask": "1.1",
|
|
129
|
+
"bpmn:SendTask": "1.1",
|
|
130
|
+
"bpmn:ServiceTask": "1.0",
|
|
131
|
+
},
|
|
132
|
+
script: {
|
|
133
|
+
"bpmn:ScriptTask": "8.2",
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* First version each timer property is allowed in, per event type. `null`
|
|
138
|
+
* means never; the functions receive whether the event interrupts and whether
|
|
139
|
+
* it starts an event sub-process.
|
|
140
|
+
*/
|
|
141
|
+
export const TIMER_SUPPORT = {
|
|
142
|
+
"bpmn:StartEvent": {
|
|
143
|
+
timeCycle: (interrupting, inEventSubProcess) => !interrupting || !inEventSubProcess ? "1.0" : null,
|
|
144
|
+
timeDate: () => "1.0",
|
|
145
|
+
timeDuration: (_, inEventSubProcess) => (inEventSubProcess ? "1.0" : null),
|
|
146
|
+
},
|
|
147
|
+
"bpmn:BoundaryEvent": {
|
|
148
|
+
timeCycle: (interrupting) => (!interrupting ? "1.0" : null),
|
|
149
|
+
timeDate: () => "8.3",
|
|
150
|
+
timeDuration: () => "1.0",
|
|
151
|
+
},
|
|
152
|
+
"bpmn:IntermediateCatchEvent": {
|
|
153
|
+
timeCycle: () => null,
|
|
154
|
+
timeDate: () => "8.3",
|
|
155
|
+
timeDuration: () => "1.0",
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
/** First version a timer cycle may be a cron expression rather than ISO 8601. */
|
|
159
|
+
export const CRON_TIMER_SINCE = "8.1";
|
|
160
|
+
/**
|
|
161
|
+
* First version each property-level feature is supported in — the version
|
|
162
|
+
* constants of the plugin's `no-*` rules, gathered in one place.
|
|
163
|
+
*/
|
|
164
|
+
export const FEATURE_SINCE = {
|
|
165
|
+
/** `zeebe:modelerTemplate`, an applied element template (`no-template`). */
|
|
166
|
+
modelerTemplate: "8.0",
|
|
167
|
+
/** `zeebe:properties` on any element (`no-zeebe-properties`). */
|
|
168
|
+
zeebeProperties: "8.1",
|
|
169
|
+
/** `candidateUsers` on `zeebe:assignmentDefinition` (`no-candidate-users`). */
|
|
170
|
+
candidateUsers: "8.2",
|
|
171
|
+
/** `propagateAllParentVariables="false"` (`no-propagate-all-parent-variables`). */
|
|
172
|
+
propagateAllParentVariablesFalse: "8.2",
|
|
173
|
+
/** `zeebe:taskSchedule` (`no-task-schedule`). */
|
|
174
|
+
taskSchedule: "8.2",
|
|
175
|
+
/** A catch event without an `errorRef` (`error-reference`). */
|
|
176
|
+
errorCatchWithoutRef: "8.2",
|
|
177
|
+
/** An error code expression on a throw event (`no-expression`). */
|
|
178
|
+
errorCodeExpression: "8.2",
|
|
179
|
+
/** A form on a start event (`start-event-form`). */
|
|
180
|
+
startEventForm: "8.3",
|
|
181
|
+
/** A signal start event inside a sub-process (`no-signal-event-sub-process`). */
|
|
182
|
+
signalEventSubProcess: "8.3",
|
|
183
|
+
/** A collapsed sub-process (`collapsed-subprocess`). */
|
|
184
|
+
collapsedSubProcess: "8.4",
|
|
185
|
+
/** `formId` on a job-worker user task, in Desktop Modeler (`user-task-form`). */
|
|
186
|
+
userTaskFormId: "8.4",
|
|
187
|
+
/** `zeebe:userTask`, the Camunda user task (`no-zeebe-user-task`). */
|
|
188
|
+
zeebeUserTask: "8.5",
|
|
189
|
+
/** `bindingType` other than `latest` (`no-binding-type`). */
|
|
190
|
+
bindingType: "8.6",
|
|
191
|
+
/** `zeebe:executionListeners` (`no-execution-listeners`). */
|
|
192
|
+
executionListeners: "8.6",
|
|
193
|
+
/** `zeebe:priorityDefinition` (`no-priority-definition`). */
|
|
194
|
+
priorityDefinition: "8.6",
|
|
195
|
+
/** `zeebe:versionTag` on a process (`no-version-tag`). */
|
|
196
|
+
versionTag: "8.6",
|
|
197
|
+
/** Completion condition and output collection on ad-hoc sub-processes (`ad-hoc-sub-process`). */
|
|
198
|
+
adHocCompletion: "8.8",
|
|
199
|
+
/** `zeebe:taskListeners` (`no-task-listeners`). */
|
|
200
|
+
taskListeners: "8.8",
|
|
201
|
+
/** A `zeebe:input` without `source` (`io-mapping`). */
|
|
202
|
+
inputWithoutSource: "8.8",
|
|
203
|
+
/** `businessId` on `zeebe:calledElement` (`no-business-id`). */
|
|
204
|
+
businessId: "8.10",
|
|
205
|
+
/** Headers on execution listeners (`no-execution-listener-headers`). */
|
|
206
|
+
executionListenerHeaders: "8.10",
|
|
207
|
+
/** `beforeAll` execution listeners (`no-before-all-execution-listener`). */
|
|
208
|
+
beforeAllExecutionListener: "8.10",
|
|
209
|
+
/** `cancel` execution listeners (`no-cancel-execution-listener`). */
|
|
210
|
+
cancelExecutionListener: "8.10",
|
|
211
|
+
/** `zeebe:jobPriorityDefinition` (`no-job-priority-definition`). */
|
|
212
|
+
jobPriorityDefinition: "8.10",
|
|
213
|
+
/** A FEEL expression as the version tag of a called decision (`version-tag`). */
|
|
214
|
+
decisionVersionTagExpression: "8.10",
|
|
215
|
+
/** `camunda.secrets.NAME`, superseding `{{secrets.NAME}}` (`secrets`). */
|
|
216
|
+
camundaSecrets: "8.10",
|
|
217
|
+
/** `zeebe:agentDefinition` marks an agentic ad-hoc sub-process (the agent rules). */
|
|
218
|
+
agentDefinition: "8.10",
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* First version each Camunda FEEL built-in function is available in, for
|
|
222
|
+
* `feel-compatibility`. Functions every version has are absent.
|
|
223
|
+
*
|
|
224
|
+
* Taken from the `engines.camunda` ranges of `@camunda/feel-builtins` 1.4.1
|
|
225
|
+
* (MIT, © Camunda Services GmbH) — `camundaBuiltins` and
|
|
226
|
+
* `camundaReservedNameBuiltins` — the table the plugin 2.61.0 checks against.
|
|
227
|
+
* Every range there is `>=X.Y`.
|
|
228
|
+
*/
|
|
229
|
+
export const FEEL_BUILTIN_SINCE = {
|
|
230
|
+
"context merge": "8.2",
|
|
231
|
+
"last day of month": "8.2",
|
|
232
|
+
"random number": "8.2",
|
|
233
|
+
assert: "8.3",
|
|
234
|
+
"duplicate values": "8.3",
|
|
235
|
+
"get or else": "8.3",
|
|
236
|
+
"is empty": "8.6",
|
|
237
|
+
"to base64": "8.6",
|
|
238
|
+
trim: "8.6",
|
|
239
|
+
uuid: "8.6",
|
|
240
|
+
partition: "8.7",
|
|
241
|
+
fromAi: "8.8",
|
|
242
|
+
"is blank": "8.8",
|
|
243
|
+
"from base64": "8.9",
|
|
244
|
+
"from json": "8.9",
|
|
245
|
+
"to json": "8.9",
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Inbound connector properties (`zeebe:property` names) that need a newer
|
|
249
|
+
* Camunda version, and the `inbound.type` values of the connectors that take
|
|
250
|
+
* them — `rules/camunda-cloud/connector-properties/config.js` of the plugin.
|
|
251
|
+
*/
|
|
252
|
+
export const INBOUND_CONNECTOR_PROPERTY_SINCE = {
|
|
253
|
+
messageTtl: {
|
|
254
|
+
since: "8.6",
|
|
255
|
+
connectors: [
|
|
256
|
+
"io.camunda:webhook:1",
|
|
257
|
+
"io.camunda:connector-rabbitmq-inbound:1",
|
|
258
|
+
"io.camunda:http-polling:1",
|
|
259
|
+
"io.camunda:connector-kafka-inbound:1",
|
|
260
|
+
"io.camunda:slack-webhook:1",
|
|
261
|
+
"io.camunda:aws-sqs-inbound:1",
|
|
262
|
+
"io.camunda:aws-sns-webhook:1",
|
|
263
|
+
],
|
|
264
|
+
},
|
|
265
|
+
consumeUnmatchedEvents: {
|
|
266
|
+
since: "8.6",
|
|
267
|
+
connectors: [
|
|
268
|
+
"io.camunda:webhook:1",
|
|
269
|
+
"io.camunda:connector-rabbitmq-inbound:1",
|
|
270
|
+
"io.camunda:http-polling:1",
|
|
271
|
+
"io.camunda:connector-kafka-inbound:1",
|
|
272
|
+
"io.camunda:slack-webhook:1",
|
|
273
|
+
"io.camunda:aws-sqs-inbound:1",
|
|
274
|
+
"io.camunda:aws-sns-webhook:1",
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
deduplicationModeManualFlag: {
|
|
278
|
+
since: "8.6",
|
|
279
|
+
connectors: [
|
|
280
|
+
"io.camunda:connector-rabbitmq-inbound:1",
|
|
281
|
+
"io.camunda:http-polling:1",
|
|
282
|
+
"io.camunda:connector-kafka-inbound:1",
|
|
283
|
+
"io.camunda:aws-sqs-inbound:1",
|
|
284
|
+
],
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
288
|
+
* Every rule of the plugin's `camunda-cloud-*` configs, with the versions it
|
|
289
|
+
* is enabled for — `index.js` of the plugin, as data.
|
|
290
|
+
*/
|
|
291
|
+
export const CAMUNDA_COMPAT_RULES = {
|
|
292
|
+
"ad-hoc-sub-process": { severity: "error", since: "8.7", coverage: "implemented" },
|
|
293
|
+
"agent-fromai-contract": { severity: "error", since: "8.8", coverage: "implemented" },
|
|
294
|
+
"agent-tool-documentation": {
|
|
295
|
+
severity: "warn",
|
|
296
|
+
since: "8.8",
|
|
297
|
+
coverage: "existing",
|
|
298
|
+
equivalents: ["agentic/tool-no-description"],
|
|
299
|
+
note: "BPMN Kit's `agentic/tool-no-description` reports the same gap.",
|
|
300
|
+
},
|
|
301
|
+
"agent-tool-output-key": { severity: "warn", since: "8.8", coverage: "implemented" },
|
|
302
|
+
"before-all-execution-listener": { severity: "error", since: "8.10", coverage: "implemented" },
|
|
303
|
+
"called-element": {
|
|
304
|
+
severity: "error",
|
|
305
|
+
coverage: "implemented",
|
|
306
|
+
equivalents: ["deploy/call-activity-no-process"],
|
|
307
|
+
},
|
|
308
|
+
"cancel-execution-listener": { severity: "error", since: "8.10", coverage: "implemented" },
|
|
309
|
+
"collapsed-subprocess": { severity: "error", until: "8.4", coverage: "implemented" },
|
|
310
|
+
"connector-properties": { severity: "warn", since: "8.0", coverage: "implemented" },
|
|
311
|
+
"duplicate-execution-listener-headers": {
|
|
312
|
+
severity: "error",
|
|
313
|
+
since: "8.10",
|
|
314
|
+
coverage: "implemented",
|
|
315
|
+
},
|
|
316
|
+
"duplicate-execution-listeners": { severity: "error", since: "8.6", coverage: "implemented" },
|
|
317
|
+
"duplicate-task-headers": { severity: "error", coverage: "implemented" },
|
|
318
|
+
"element-type": { severity: "error", coverage: "implemented" },
|
|
319
|
+
"error-reference": { severity: "error", coverage: "implemented" },
|
|
320
|
+
"escalation-boundary-event-attached-to-ref": {
|
|
321
|
+
severity: "error",
|
|
322
|
+
since: "8.2",
|
|
323
|
+
coverage: "implemented",
|
|
324
|
+
},
|
|
325
|
+
"escalation-reference": { severity: "error", since: "8.2", coverage: "implemented" },
|
|
326
|
+
"event-based-gateway-target": { severity: "error", coverage: "implemented" },
|
|
327
|
+
"executable-process": {
|
|
328
|
+
severity: "error",
|
|
329
|
+
coverage: "existing",
|
|
330
|
+
equivalents: ["deploy/process-not-executable"],
|
|
331
|
+
note: "`deploy/process-not-executable` reports every non-executable process; the plugin only complains when none is executable.",
|
|
332
|
+
},
|
|
333
|
+
"execution-listener": { severity: "error", since: "8.6", coverage: "implemented" },
|
|
334
|
+
feel: {
|
|
335
|
+
severity: "error",
|
|
336
|
+
coverage: "existing",
|
|
337
|
+
equivalents: ["feel-syntax/parse-error"],
|
|
338
|
+
note: "BPMN Kit's own FEEL parser reports syntax errors as `feel-syntax/parse-error`.",
|
|
339
|
+
},
|
|
340
|
+
"feel-compatibility": {
|
|
341
|
+
severity: "error",
|
|
342
|
+
coverage: "implemented",
|
|
343
|
+
note: "Parses with `@bpmnkit/feel` rather than the plugin's lezer-feel grammar, so an expression only one of the two parsers accepts is judged differently.",
|
|
344
|
+
},
|
|
345
|
+
implementation: {
|
|
346
|
+
severity: "error",
|
|
347
|
+
coverage: "implemented",
|
|
348
|
+
equivalents: ["deploy/service-task-no-type"],
|
|
349
|
+
},
|
|
350
|
+
"inclusive-gateway": { severity: "error", since: "8.1", until: "8.6", coverage: "implemented" },
|
|
351
|
+
"io-mapping": { severity: "error", coverage: "implemented" },
|
|
352
|
+
"link-event": {
|
|
353
|
+
severity: "error",
|
|
354
|
+
since: "8.2",
|
|
355
|
+
coverage: "implemented",
|
|
356
|
+
equivalents: ["flow/link-event-mismatch"],
|
|
357
|
+
note: "Where bpmnlint's `link-event` runs (`flow/link-event-mismatch`), it reports the same unnamed or duplicate link event, and that finding stays.",
|
|
358
|
+
},
|
|
359
|
+
"loop-characteristics": { severity: "error", coverage: "implemented" },
|
|
360
|
+
"message-reference": {
|
|
361
|
+
severity: "error",
|
|
362
|
+
coverage: "implemented",
|
|
363
|
+
equivalents: ["deploy/message-start-no-name"],
|
|
364
|
+
},
|
|
365
|
+
"no-before-all-execution-listener": {
|
|
366
|
+
severity: "error",
|
|
367
|
+
since: "8.6",
|
|
368
|
+
until: "8.10",
|
|
369
|
+
coverage: "implemented",
|
|
370
|
+
},
|
|
371
|
+
"no-binding-type": { severity: "error", until: "8.6", coverage: "implemented" },
|
|
372
|
+
"no-business-id": { severity: "error", until: "8.10", coverage: "implemented" },
|
|
373
|
+
"no-candidate-users": { severity: "error", until: "8.2", coverage: "implemented" },
|
|
374
|
+
"no-cancel-execution-listener": { severity: "error", until: "8.10", coverage: "implemented" },
|
|
375
|
+
"no-execution-listener-headers": { severity: "error", until: "8.10", coverage: "implemented" },
|
|
376
|
+
"no-execution-listeners": { severity: "error", until: "8.6", coverage: "implemented" },
|
|
377
|
+
"no-expression": { severity: "error", coverage: "implemented" },
|
|
378
|
+
"no-interrupting-event-subprocess": { severity: "error", since: "8.7", coverage: "implemented" },
|
|
379
|
+
"no-job-priority-definition": { severity: "error", until: "8.10", coverage: "implemented" },
|
|
380
|
+
"no-loop": { severity: "error", coverage: "implemented" },
|
|
381
|
+
"no-multiple-none-start-events": { severity: "error", coverage: "implemented" },
|
|
382
|
+
"no-priority-definition": { severity: "error", until: "8.6", coverage: "implemented" },
|
|
383
|
+
"no-propagate-all-parent-variables": { severity: "error", until: "8.2", coverage: "implemented" },
|
|
384
|
+
"no-signal-event-sub-process": {
|
|
385
|
+
severity: "error",
|
|
386
|
+
since: "8.2",
|
|
387
|
+
until: "8.3",
|
|
388
|
+
coverage: "implemented",
|
|
389
|
+
},
|
|
390
|
+
"no-task-listeners": { severity: "error", until: "8.8", coverage: "implemented" },
|
|
391
|
+
"no-task-schedule": { severity: "error", until: "8.2", coverage: "implemented" },
|
|
392
|
+
"no-template": { severity: "error", until: "8.0", coverage: "implemented" },
|
|
393
|
+
"no-version-tag": { severity: "error", until: "8.6", coverage: "implemented" },
|
|
394
|
+
"no-zeebe-properties": { severity: "error", until: "8.1", coverage: "implemented" },
|
|
395
|
+
"no-zeebe-user-task": { severity: "error", until: "8.5", coverage: "implemented" },
|
|
396
|
+
"priority-definition": { severity: "error", since: "8.6", coverage: "implemented" },
|
|
397
|
+
secrets: { severity: "warn", since: "8.3", coverage: "implemented" },
|
|
398
|
+
"sequence-flow-condition": {
|
|
399
|
+
severity: "error",
|
|
400
|
+
coverage: "implemented",
|
|
401
|
+
equivalents: ["feel/empty-condition"],
|
|
402
|
+
},
|
|
403
|
+
"signal-reference": { severity: "error", since: "8.3", coverage: "implemented" },
|
|
404
|
+
"start-event-form": { severity: "error", coverage: "implemented" },
|
|
405
|
+
"start-event-form-embedded": { severity: "warn", since: "8.9", coverage: "implemented" },
|
|
406
|
+
subscription: {
|
|
407
|
+
severity: "error",
|
|
408
|
+
coverage: "partial",
|
|
409
|
+
equivalents: ["deploy/message-catch-no-correlation"],
|
|
410
|
+
note: "A `zeebe:subscription` placed on the catch element instead of on its `bpmn:message` is reported as the plugin reports it: the message is missing its subscription. BPMN Kit's builders write it on the message.",
|
|
411
|
+
},
|
|
412
|
+
"task-listener": { severity: "error", since: "8.8", coverage: "implemented" },
|
|
413
|
+
"task-schedule": { severity: "error", since: "8.2", coverage: "implemented" },
|
|
414
|
+
timer: { severity: "error", coverage: "implemented" },
|
|
415
|
+
"unresolvable-secret-reference": { severity: "error", since: "8.10", coverage: "implemented" },
|
|
416
|
+
"user-task-definition": { severity: "warn", coverage: "implemented" },
|
|
417
|
+
"user-task-form": { severity: "error", coverage: "implemented" },
|
|
418
|
+
"variable-name": { severity: "error", coverage: "implemented" },
|
|
419
|
+
"version-tag": { severity: "error", since: "8.6", coverage: "implemented" },
|
|
420
|
+
"wait-for-completion": { severity: "error", since: "8.5", coverage: "implemented" },
|
|
421
|
+
"zeebe-user-task": { severity: "warn", since: "8.6", coverage: "implemented" },
|
|
422
|
+
};
|
|
423
|
+
//# sourceMappingURL=camunda-compat-data.js.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FEEL analysis for the Camunda-version compatibility rules that look inside
|
|
3
|
+
* expressions — `feel-compatibility`, `unresolvable-secret-reference` and
|
|
4
|
+
* `agent-fromai-contract`.
|
|
5
|
+
*
|
|
6
|
+
* `bpmnlint-plugin-camunda-compat` reads these from the lezer-feel syntax
|
|
7
|
+
* tree (through `@bpmn-io/feel-analyzer` for built-in calls). This module
|
|
8
|
+
* answers the same questions from `@bpmnkit/feel`'s AST, and names nodes by
|
|
9
|
+
* their lezer-feel type where a plugin message quotes one.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* The built-in functions an expression calls, as `@bpmn-io/feel-analyzer`
|
|
15
|
+
* reports them to the plugin: a call counts as a built-in call only when the
|
|
16
|
+
* name is not bound by a context entry, function parameter or iteration
|
|
17
|
+
* variable around it — and a name called both ways counts as a user function.
|
|
18
|
+
*
|
|
19
|
+
* @param expression - FEEL without the leading `=`.
|
|
20
|
+
* @param builtins - The names to look for.
|
|
21
|
+
* @returns The built-ins called, sorted as the analyzer sorts them; `undefined`
|
|
22
|
+
* when the expression does not parse, which the `feel` rule reports.
|
|
23
|
+
*/
|
|
24
|
+
export declare function feelBuiltinCalls(expression: string, builtins: ReadonlySet<string>): string[] | undefined;
|
|
25
|
+
/** `camunda.secrets.<name>` anywhere in a string — the plugin's text check. */
|
|
26
|
+
export declare const SECRET_REFERENCE_LITERAL: RegExp;
|
|
27
|
+
/** How a `camunda.secrets.<name>` reference is written in a way the engine rejects. */
|
|
28
|
+
export interface SecretReferenceViolations {
|
|
29
|
+
/** Inside a string literal, where it is inert text. */
|
|
30
|
+
stringLiteral: boolean;
|
|
31
|
+
/** Inside a list. */
|
|
32
|
+
insideList: boolean;
|
|
33
|
+
/** Inside a context returned by an `if` branch. */
|
|
34
|
+
insideIfBranchContext: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Finds the ways a FEEL expression writes a `camunda.secrets.<name>`
|
|
38
|
+
* reference that Camunda rejects at deployment, as the plugin's
|
|
39
|
+
* `findSecretReferenceViolations` does: in a string literal, or — looking down
|
|
40
|
+
* from the top through context entries and `if` branches only — inside a list
|
|
41
|
+
* or inside a context an `if` branch returns.
|
|
42
|
+
*
|
|
43
|
+
* @param expression - FEEL without the leading `=`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function secretReferenceViolations(expression: string): SecretReferenceViolations;
|
|
46
|
+
/** A `fromAi()` argument: its lezer-feel node type and its source text. */
|
|
47
|
+
export interface FromAiArgument {
|
|
48
|
+
type: string;
|
|
49
|
+
text: string;
|
|
50
|
+
}
|
|
51
|
+
/** One `fromAi()` call (in any casing) and its arguments. */
|
|
52
|
+
export interface FromAiCall {
|
|
53
|
+
/** The function name as written. */
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Arguments by the engine's parameter slots — `value`, `description`,
|
|
57
|
+
* `type`, `schema`, `options`. A named call fills only the slots it names.
|
|
58
|
+
*/
|
|
59
|
+
args: (FromAiArgument | undefined)[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* The `fromAi()` calls in an expression, in any casing, outermost first — the
|
|
63
|
+
* plugin's `findFunctionInvocations` and `getArgs`.
|
|
64
|
+
*
|
|
65
|
+
* @param expression - FEEL without the leading `=`, trimmed.
|
|
66
|
+
*/
|
|
67
|
+
export declare function fromAiCalls(expression: string): FromAiCall[];
|
|
68
|
+
//# sourceMappingURL=camunda-compat-feel.d.ts.map
|