@bpmnkit/core 1.9.0 → 1.10.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 (108) hide show
  1. package/agent-cards/bpmn.md +3 -3
  2. package/builder-reference.md +11 -9
  3. package/dist/bpmn/auto-layout.js +82 -26
  4. package/dist/bpmn/bpmn-builder.d.ts +84 -7
  5. package/dist/bpmn/bpmn-builder.js +313 -78
  6. package/dist/bpmn/bpmn-model.d.ts +2 -0
  7. package/dist/bpmn/bpmn-parser.js +68 -76
  8. package/dist/bpmn/bpmn-serializer.js +60 -19
  9. package/dist/bpmn/bpmnlint.js +4 -69
  10. package/dist/bpmn/builder-rules.d.ts +20 -0
  11. package/dist/bpmn/builder-rules.js +120 -0
  12. package/dist/bpmn/camunda-compat-data.d.ts +10 -148
  13. package/dist/bpmn/camunda-compat-data.js +16 -407
  14. package/dist/bpmn/camunda-compat-feel.d.ts +3 -0
  15. package/dist/bpmn/camunda-compat-feel.js +1 -1
  16. package/dist/bpmn/camunda-compat.js +7 -6
  17. package/dist/bpmn/camunda7/export.js +4 -1
  18. package/dist/bpmn/camunda7/juel.js +2 -1
  19. package/dist/bpmn/camunda7/migrate.d.ts +23 -0
  20. package/dist/bpmn/camunda7/migrate.js +75 -3
  21. package/dist/bpmn/compact-stream.js +2 -1
  22. package/dist/bpmn/compact.d.ts +80 -4
  23. package/dist/bpmn/compact.js +220 -38
  24. package/dist/bpmn/feel-condition.d.ts +9 -0
  25. package/dist/bpmn/feel-condition.js +19 -0
  26. package/dist/bpmn/full-operations.js +31 -4
  27. package/dist/bpmn/index.d.ts +13 -3
  28. package/dist/bpmn/index.js +16 -15
  29. package/dist/bpmn/operations.d.ts +4 -4
  30. package/dist/bpmn/operations.js +14 -2
  31. package/dist/bpmn/optimize/bpmnlint-rules.js +7 -40
  32. package/dist/bpmn/optimize/index.js +15 -1
  33. package/dist/bpmn/optimize/tasks.js +12 -3
  34. package/dist/bpmn/process-delta.d.ts +18 -0
  35. package/dist/bpmn/process-delta.js +20 -2
  36. package/dist/bpmn/process-text-writer.js +27 -1
  37. package/dist/bpmn/process-text.d.ts +9 -3
  38. package/dist/bpmn/process-text.js +122 -16
  39. package/dist/bpmn/stable-ids.d.ts +2 -0
  40. package/dist/bpmn/stable-ids.js +8 -0
  41. package/dist/bpmn/zeebe-extensions.js +2 -1
  42. package/dist/bpmn/zeebe-placement.js +6 -129
  43. package/dist/bpmn/zeebe-validate/context.d.ts +132 -0
  44. package/dist/bpmn/zeebe-validate/context.js +241 -0
  45. package/dist/bpmn/zeebe-validate/gate.d.ts +87 -0
  46. package/dist/bpmn/zeebe-validate/gate.js +492 -0
  47. package/dist/bpmn/zeebe-validate/index.d.ts +37 -0
  48. package/dist/bpmn/zeebe-validate/index.js +106 -0
  49. package/dist/bpmn/zeebe-validate/rules/events.d.ts +4 -0
  50. package/dist/bpmn/zeebe-validate/rules/events.js +580 -0
  51. package/dist/bpmn/zeebe-validate/rules/extensions.d.ts +4 -0
  52. package/dist/bpmn/zeebe-validate/rules/extensions.js +411 -0
  53. package/dist/bpmn/zeebe-validate/rules/gateways.d.ts +3 -0
  54. package/dist/bpmn/zeebe-validate/rules/gateways.js +296 -0
  55. package/dist/bpmn/zeebe-validate/rules/references.d.ts +3 -0
  56. package/dist/bpmn/zeebe-validate/rules/references.js +495 -0
  57. package/dist/bpmn/zeebe-validate/rules/structure.d.ts +3 -0
  58. package/dist/bpmn/zeebe-validate/rules/structure.js +629 -0
  59. package/dist/bpmn/zeebe-validate/rules/tasks.d.ts +4 -0
  60. package/dist/bpmn/zeebe-validate/rules/tasks.js +446 -0
  61. package/dist/bpmn/zeebe-validate/xml.d.ts +15 -0
  62. package/dist/bpmn/zeebe-validate/xml.js +1062 -0
  63. package/dist/bpmn/zeebe-validate/xsd.d.ts +19 -0
  64. package/dist/bpmn/zeebe-validate/xsd.js +350 -0
  65. package/dist/connectors/apply-element.d.ts +5 -2
  66. package/dist/connectors/apply-element.js +6 -0
  67. package/dist/connectors/apply-many.d.ts +9 -2
  68. package/dist/connectors/apply-many.js +17 -2
  69. package/dist/connectors/apply.d.ts +4 -2
  70. package/dist/connectors/deployability.d.ts +27 -0
  71. package/dist/connectors/deployability.js +41 -0
  72. package/dist/connectors/index.d.ts +1 -0
  73. package/dist/connectors/lines.d.ts +10 -0
  74. package/dist/connectors/lines.js +13 -4
  75. package/dist/dmn/dmn-model.d.ts +24 -4
  76. package/dist/dmn/dmn-parser.js +37 -3
  77. package/dist/dmn/dmn-serializer.js +48 -47
  78. package/dist/dmn/lint.js +4 -11
  79. package/dist/errors.d.ts +30 -1
  80. package/dist/errors.js +31 -0
  81. package/dist/form/form-model.d.ts +11 -0
  82. package/dist/form/form-parser.d.ts +1 -0
  83. package/dist/form/form-parser.js +48 -12
  84. package/dist/form/form-serializer.js +40 -17
  85. package/dist/form/lint.js +6 -40
  86. package/dist/generated/bpmn-elements.d.ts +5 -0
  87. package/dist/generated/bpmn-elements.js +151 -0
  88. package/dist/generated/camunda-compat-data.d.ts +148 -0
  89. package/dist/generated/camunda-compat-data.js +371 -0
  90. package/dist/generated/dmn-elements.d.ts +12 -0
  91. package/dist/generated/dmn-elements.js +45 -0
  92. package/dist/generated/form-elements.d.ts +5 -0
  93. package/dist/generated/form-elements.js +45 -0
  94. package/dist/generated/lint-rules.d.ts +17 -0
  95. package/dist/generated/lint-rules.js +116 -0
  96. package/dist/generated/zeebe-elements.d.ts +10 -0
  97. package/dist/generated/zeebe-elements.js +168 -0
  98. package/dist/generated/zeebe-rules.d.ts +25 -0
  99. package/dist/generated/zeebe-rules.js +202 -0
  100. package/dist/index.d.ts +10 -4
  101. package/dist/index.js +4 -1
  102. package/dist/layout/annotations.js +21 -1
  103. package/dist/layout/orthogonal.js +9 -3
  104. package/dist/plan/compile.d.ts +26 -1
  105. package/dist/plan/compile.js +48 -6
  106. package/dist/plan/merge.d.ts +2 -1
  107. package/dist/plan/merge.js +13 -5
  108. package/package.json +2 -2
@@ -0,0 +1,168 @@
1
+ // @generated by scripts/spec-gen.mjs from spec/elements/zeebe.json — do not edit; run `pnpm spec:gen`.
2
+ /** Every zeebe element, in the spec's order. */
3
+ export const ZEEBE_ELEMENT_NAMES = [
4
+ "adHoc",
5
+ "agentDefinition",
6
+ "assignmentDefinition",
7
+ "calledDecision",
8
+ "calledElement",
9
+ "conditionalFilter",
10
+ "executionListener",
11
+ "executionListeners",
12
+ "formDefinition",
13
+ "header",
14
+ "input",
15
+ "ioMapping",
16
+ "jobPriorityDefinition",
17
+ "linkedResource",
18
+ "linkedResources",
19
+ "loopCharacteristics",
20
+ "output",
21
+ "priorityDefinition",
22
+ "properties",
23
+ "property",
24
+ "script",
25
+ "subscription",
26
+ "taskDefinition",
27
+ "taskHeaders",
28
+ "taskListener",
29
+ "taskListeners",
30
+ "taskSchedule",
31
+ "userTask",
32
+ "userTaskForm",
33
+ "versionTag",
34
+ ];
35
+ /** The elements carrying each trait, in the spec's order. */
36
+ export const ZEEBE_ELEMENTS_BY_TRAIT = {
37
+ "collection": ["executionListeners", "ioMapping", "linkedResources", "properties", "taskHeaders", "taskListeners"],
38
+ };
39
+ /**
40
+ * Where each zeebe element may be placed: qualified element name → the parents (`name` or
41
+ * `family:name`) it may sit directly in. Elements without `allowedIn` are absent.
42
+ */
43
+ export const ZEEBE_ALLOWED_IN = {
44
+ "zeebe:adHoc": ["bpmn:adHocSubProcess"],
45
+ "zeebe:agentDefinition": ["bpmn:adHocSubProcess", "bpmn:serviceTask"],
46
+ "zeebe:assignmentDefinition": ["bpmn:userTask"],
47
+ "zeebe:calledDecision": ["bpmn:businessRuleTask"],
48
+ "zeebe:calledElement": ["bpmn:callActivity"],
49
+ "zeebe:conditionalFilter": ["bpmn:conditionalEventDefinition"],
50
+ "zeebe:executionListener": ["zeebe:executionListeners"],
51
+ "zeebe:executionListeners": [
52
+ "bpmn:adHocSubProcess",
53
+ "bpmn:boundaryEvent",
54
+ "bpmn:businessRuleTask",
55
+ "bpmn:callActivity",
56
+ "bpmn:endEvent",
57
+ "bpmn:eventBasedGateway",
58
+ "bpmn:exclusiveGateway",
59
+ "bpmn:implicitThrowEvent",
60
+ "bpmn:inclusiveGateway",
61
+ "bpmn:intermediateCatchEvent",
62
+ "bpmn:intermediateThrowEvent",
63
+ "bpmn:manualTask",
64
+ "bpmn:parallelGateway",
65
+ "bpmn:process",
66
+ "bpmn:receiveTask",
67
+ "bpmn:scriptTask",
68
+ "bpmn:sendTask",
69
+ "bpmn:serviceTask",
70
+ "bpmn:startEvent",
71
+ "bpmn:subProcess",
72
+ "bpmn:task",
73
+ "bpmn:transaction",
74
+ "bpmn:userTask",
75
+ ],
76
+ "zeebe:formDefinition": ["bpmn:startEvent", "bpmn:userTask"],
77
+ "zeebe:input": [
78
+ "bpmn:adHocSubProcess",
79
+ "bpmn:businessRuleTask",
80
+ "bpmn:callActivity",
81
+ "bpmn:endEvent",
82
+ "bpmn:intermediateThrowEvent",
83
+ "bpmn:scriptTask",
84
+ "bpmn:sendTask",
85
+ "bpmn:serviceTask",
86
+ "bpmn:subProcess",
87
+ "bpmn:transaction",
88
+ "bpmn:userTask",
89
+ ],
90
+ "zeebe:ioMapping": [
91
+ "bpmn:adHocSubProcess",
92
+ "bpmn:boundaryEvent",
93
+ "bpmn:businessRuleTask",
94
+ "bpmn:callActivity",
95
+ "bpmn:endEvent",
96
+ "bpmn:implicitThrowEvent",
97
+ "bpmn:intermediateCatchEvent",
98
+ "bpmn:intermediateThrowEvent",
99
+ "bpmn:receiveTask",
100
+ "bpmn:scriptTask",
101
+ "bpmn:sendTask",
102
+ "bpmn:serviceTask",
103
+ "bpmn:startEvent",
104
+ "bpmn:subProcess",
105
+ "bpmn:transaction",
106
+ "bpmn:userTask",
107
+ ],
108
+ "zeebe:jobPriorityDefinition": [
109
+ "bpmn:adHocSubProcess",
110
+ "bpmn:businessRuleTask",
111
+ "bpmn:endEvent",
112
+ "bpmn:intermediateThrowEvent",
113
+ "bpmn:process",
114
+ "bpmn:scriptTask",
115
+ "bpmn:sendTask",
116
+ "bpmn:serviceTask",
117
+ ],
118
+ "zeebe:linkedResource": ["bpmn:serviceTask"],
119
+ "zeebe:linkedResources": ["bpmn:serviceTask"],
120
+ "zeebe:loopCharacteristics": ["bpmn:multiInstanceLoopCharacteristics"],
121
+ "zeebe:output": [
122
+ "bpmn:adHocSubProcess",
123
+ "bpmn:boundaryEvent",
124
+ "bpmn:businessRuleTask",
125
+ "bpmn:callActivity",
126
+ "bpmn:endEvent",
127
+ "bpmn:implicitThrowEvent",
128
+ "bpmn:intermediateCatchEvent",
129
+ "bpmn:intermediateThrowEvent",
130
+ "bpmn:receiveTask",
131
+ "bpmn:scriptTask",
132
+ "bpmn:sendTask",
133
+ "bpmn:serviceTask",
134
+ "bpmn:startEvent",
135
+ "bpmn:subProcess",
136
+ "bpmn:transaction",
137
+ "bpmn:userTask",
138
+ ],
139
+ "zeebe:priorityDefinition": ["bpmn:userTask"],
140
+ "zeebe:script": ["bpmn:scriptTask"],
141
+ "zeebe:taskDefinition": [
142
+ "bpmn:adHocSubProcess",
143
+ "bpmn:businessRuleTask",
144
+ "bpmn:endEvent",
145
+ "bpmn:intermediateThrowEvent",
146
+ "bpmn:scriptTask",
147
+ "bpmn:sendTask",
148
+ "bpmn:serviceTask",
149
+ ],
150
+ "zeebe:taskHeaders": [
151
+ "bpmn:adHocSubProcess",
152
+ "bpmn:businessRuleTask",
153
+ "bpmn:endEvent",
154
+ "bpmn:intermediateThrowEvent",
155
+ "bpmn:scriptTask",
156
+ "bpmn:sendTask",
157
+ "bpmn:serviceTask",
158
+ "bpmn:userTask",
159
+ "zeebe:executionListener",
160
+ ],
161
+ "zeebe:taskListener": ["zeebe:taskListeners"],
162
+ "zeebe:taskListeners": ["bpmn:userTask"],
163
+ "zeebe:taskSchedule": ["bpmn:userTask"],
164
+ "zeebe:userTask": ["bpmn:userTask"],
165
+ "zeebe:userTaskForm": ["bpmn:process"],
166
+ "zeebe:versionTag": ["bpmn:process"],
167
+ };
168
+ //# sourceMappingURL=zeebe-elements.js.map
@@ -0,0 +1,25 @@
1
+ /** How BPMN Kit decides a Zeebe rule (see spec/schema/zeebe-rules.schema.json). */
2
+ export type ZeebeRuleCheck = "model" | "xml" | "context" | "none";
3
+ /** One Zeebe deployment rule; the finding id is `zeebe/<name>`. */
4
+ export interface ZeebeRuleMeta {
5
+ id: string;
6
+ name: ZeebeRuleName;
7
+ kind: "static" | "feel" | "context";
8
+ severity: "error" | "warning" | "info";
9
+ check: ZeebeRuleCheck;
10
+ /** First Camunda version the rule applies to. */
11
+ since: string;
12
+ /** Last Camunda version the rule applies to, when Zeebe dropped it. */
13
+ until?: string;
14
+ /** Zeebe's first message for the rule, `%s` for a placeholder. */
15
+ message: string;
16
+ }
17
+ /** The `<name>` of every rule, so a check can only report a rule the spec has. */
18
+ export type ZeebeRuleName = "xml-schema" | "target-namespace" | "sequence-flow-refs" | "boundary-attached-ref" | "association-refs" | "xsd-required-name" | "id-ncname-unique" | "idref-resolves" | "xsd-content" | "id-present" | "executable-process" | "id-length" | "name-length" | "worker-type-length" | "element-type" | "event-definition-type" | "event-sub-process-start-type" | "intermediate-catch-type" | "boundary-type" | "end-event-type" | "non-interrupting-type" | "escalation-boundary-host" | "process-start-event" | "multiple-none-start" | "duplicate-event-sub-process-trigger" | "duplicate-message-start" | "duplicate-signal-start" | "duplicate-error-catch" | "duplicate-escalation-catch" | "duplicate-conditional-start" | "duplicate-event-sub-process-condition" | "duplicate-boundary-trigger" | "duplicate-process-extension" | "case-marker" | "straight-through-loop" | "multi-tenant-feature" | "start-event-definitions" | "start-form-public-access" | "start-event-start-listener" | "event-sub-process-start-typed" | "compensation-event-sub-process-level" | "interrupting-event-sub-process-in-ad-hoc" | "interrupting-timer-cycle" | "timer-one-value" | "intermediate-timer-value" | "timer-expression" | "timer-date-range" | "boundary-attached" | "boundary-incoming" | "boundary-event-definitions" | "compensation-boundary-shape" | "boundary-listeners" | "end-event-outgoing" | "end-event-definitions" | "compensation-wait-for-completion" | "error-end-end-listener" | "intermediate-catch-definitions" | "conditional-condition" | "conditional-filter-events" | "event-based-gateway-duplicate-condition" | "message-reference" | "message-name" | "message-subscription" | "subscription-correlation-key" | "correlation-key-expression" | "message-name-expression" | "message-start-name-constant" | "message-start-name-length" | "message-throw-implementation" | "message-throw-reference" | "publish-message-correlation-key" | "receive-task-message" | "receive-task-boundary-message" | "signal-reference" | "signal-name" | "signal-name-expression" | "error-end-reference" | "error-code" | "error-catch-code-expression" | "escalation-throw-reference" | "escalation-code" | "escalation-catch-code-expression" | "link-name" | "link-throw-catch" | "duplicate-link-catch" | "compensation-activity-exists" | "compensation-activity-handler" | "compensation-activity-scope" | "compensation-handler-flows" | "service-task-definition" | "task-definition-type" | "task-definition-retries" | "task-definition-expression" | "duplicate-task-extension" | "header-reserved-key" | "duplicate-header-key" | "empty-header" | "script-task-implementation" | "script-attributes" | "script-expression" | "job-priority-mode" | "job-priority-value" | "send-task-implementation" | "send-task-message" | "input-mapping" | "output-mapping" | "secret-literal" | "secret-in-list" | "variable-mapping-build" | "linked-resource-attributes" | "linked-resource-deployment" | "agent-type-required" | "agent-type-placement" | "duplicate-user-task-extension" | "form-definition-job-worker" | "form-definition-native" | "form-binding-type" | "form-deployment" | "embedded-form" | "assignment-expression" | "task-schedule-date" | "user-task-priority" | "task-listener-placement" | "task-listener-attributes" | "call-activity-called-element" | "called-element-process-id" | "called-element-expression" | "called-element-business-id" | "called-element-binding-type" | "called-element-deployment" | "called-element-latest" | "business-rule-task-implementation" | "called-decision-attributes" | "called-decision-expression" | "called-decision-binding-type" | "called-decision-deployment" | "duplicate-called-decision" | "exclusive-default-source" | "inclusive-default-source" | "exclusive-flow-condition" | "inclusive-flow-condition" | "conditional-flow-source" | "condition-expression" | "event-based-gateway-outgoing" | "event-based-gateway-target" | "event-based-gateway-duplicate-trigger" | "event-based-gateway-target-incoming" | "gateway-end-listener" | "multi-instance-loop-characteristics" | "multi-instance-input-collection" | "multi-instance-output-pair" | "multi-instance-expression" | "before-all-listener" | "sub-process-start-event" | "sub-process-start-none" | "sub-process-scope" | "ad-hoc-activity" | "ad-hoc-start-event" | "ad-hoc-end-event" | "ad-hoc-agent-cancel-remaining" | "ad-hoc-agent-completion-condition" | "ad-hoc-agent-active-elements" | "ad-hoc-output-pair" | "ad-hoc-expression" | "duplicate-ad-hoc-extension" | "ad-hoc-parameters" | "feel-parse" | "expression-required" | "expression-non-static" | "static-value" | "required-attribute" | "exactly-one-attribute" | "required-extension" | "duplicate-extension" | "execution-listener-attributes" | "duplicate-execution-listeners-element" | "execution-listener-placement" | "cancel-listener-placement" | "duplicate-execution-listener" | "execution-listener-null" | "deployment-empty" | "resource-name-length" | "duplicate-process-id" | "duplicate-resource-id" | "resource-extension" | "resource-empty" | "tenant-authorization" | "deployment-exists" | "timer-start-creation" | "error-truncation" | "form-resource" | "dmn-resource" | "rpa-resource";
19
+ /** The Camunda version validation targets when none is given. */
20
+ export declare const ZEEBE_LATEST_VERSION = "8.10";
21
+ /** The Zeebe version the rules were last checked against with tools/zeebe-check. */
22
+ export declare const ZEEBE_VERIFIED_VERSION = "8.9.28";
23
+ /** Every Zeebe deployment rule, in `zeebe-rules.md` order. */
24
+ export declare const ZEEBE_RULES: readonly ZeebeRuleMeta[];
25
+ //# sourceMappingURL=zeebe-rules.d.ts.map
@@ -0,0 +1,202 @@
1
+ // @generated by scripts/spec-gen.mjs from spec/zeebe-rules.json — do not edit; run `pnpm spec:gen`.
2
+ /** The Camunda version validation targets when none is given. */
3
+ export const ZEEBE_LATEST_VERSION = "8.10";
4
+ /** The Zeebe version the rules were last checked against with tools/zeebe-check. */
5
+ export const ZEEBE_VERIFIED_VERSION = "8.9.28";
6
+ /** Every Zeebe deployment rule, in `zeebe-rules.md` order. */
7
+ export const ZEEBE_RULES = [
8
+ { id: "Z01", name: "xml-schema", kind: "static", severity: "error", check: "xml", since: "8.0", message: "Unable to parse BPMN XML" },
9
+ { id: "Z02", name: "target-namespace", kind: "static", severity: "error", check: "xml", since: "8.0", message: "XSD cvc-complex-type.4 missing attribute targetNamespace" },
10
+ { id: "Z03", name: "sequence-flow-refs", kind: "static", severity: "error", check: "xml", since: "8.0", message: "XSD missing attribute" },
11
+ { id: "Z04", name: "boundary-attached-ref", kind: "static", severity: "error", check: "xml", since: "8.0", message: "XSD missing attribute" },
12
+ { id: "Z05", name: "association-refs", kind: "static", severity: "error", check: "xml", since: "8.0", message: "XSD missing attribute / IDREF not resolved" },
13
+ { id: "Z06", name: "xsd-required-name", kind: "static", severity: "error", check: "xml", since: "8.0", message: "XSD missing attribute" },
14
+ { id: "Z07", name: "id-ncname-unique", kind: "static", severity: "error", check: "xml", since: "8.0", message: "There are multiple occurrences of ID value" },
15
+ { id: "Z08", name: "idref-resolves", kind: "static", severity: "error", check: "xml", since: "8.0", message: "cvc-id.1" },
16
+ { id: "Z09", name: "xsd-content", kind: "static", severity: "error", check: "xml", since: "8.0", message: "cvc-complex-type.2.4.a Invalid content" },
17
+ { id: "Z10", name: "id-present", kind: "static", severity: "error", check: "model", since: "8.0", message: "Element id must be present and not empty." },
18
+ { id: "Z11", name: "executable-process", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must contain at least one executable process" },
19
+ { id: "Z12", name: "id-length", kind: "static", severity: "error", check: "model", since: "8.0", message: "IDs must not be longer than the configured max-id-length of N characters." },
20
+ { id: "Z13", name: "name-length", kind: "static", severity: "error", check: "model", since: "8.0", message: "Names must not be longer than the configured max-name-length of N characters." },
21
+ { id: "Z14", name: "worker-type-length", kind: "static", severity: "error", check: "model", since: "8.0", message: "Worker types must not be longer than the configured max-worker-type-length of N characters." },
22
+ { id: "Z15", name: "element-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Elements of type '%s' are currently not supported. Please refer to the documentation for a list of supported elements: https://docs.camunda.io/docs/components/modeler/bpmn/bpmn-coverage/" },
23
+ { id: "Z16", name: "event-definition-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Event definition of this type is not supported" },
24
+ { id: "Z17", name: "event-sub-process-start-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Start events in event subprocesses must be one of: message, timer, error, signal, escalation or conditional" },
25
+ { id: "Z18", name: "intermediate-catch-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Event definition must be one of: message, timer, signal, link or conditional" },
26
+ { id: "Z19", name: "boundary-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Boundary events must be one of: timer, message, error, signal, escalation, conditional" },
27
+ { id: "Z20", name: "end-event-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "End events must be one of: none, error, message, terminate, signal, escalation or compensation" },
28
+ { id: "Z21", name: "non-interrupting-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Non-Interrupting event of this type is not allowed" },
29
+ { id: "Z22", name: "escalation-boundary-host", kind: "static", severity: "error", check: "model", since: "8.2", message: "An escalation boundary event should only be attached to a subprocess, or a call activity." },
30
+ { id: "Z23", name: "process-start-event", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have at least one start event" },
31
+ { id: "Z24", name: "multiple-none-start", kind: "static", severity: "error", check: "model", since: "8.0", message: "Multiple none start events are not allowed" },
32
+ { id: "Z25", name: "duplicate-event-sub-process-trigger", kind: "static", severity: "error", check: "model", since: "8.0", message: "Multiple message event definitions with the same name '%s' are not allowed." },
33
+ { id: "Z26", name: "duplicate-message-start", kind: "static", severity: "error", check: "model", since: "8.0", message: "Multiple message event definitions with the same name '%s' are not allowed." },
34
+ { id: "Z27", name: "duplicate-signal-start", kind: "static", severity: "error", check: "model", since: "8.2", message: "Multiple signal event definitions with the same name '%s' are not allowed." },
35
+ { id: "Z28", name: "duplicate-error-catch", kind: "static", severity: "error", check: "model", since: "8.0", message: "Multiple error catch events with the same error code '%s' are not supported on the same scope." },
36
+ { id: "Z29", name: "duplicate-escalation-catch", kind: "static", severity: "error", check: "model", since: "8.2", message: "Multiple escalation catch events with the same escalation code '%s' are not supported on the same scope." },
37
+ { id: "Z30", name: "duplicate-conditional-start", kind: "static", severity: "error", check: "model", since: "8.9", message: "Duplicate condition expression '%s' found in conditional start events of process '%s'. Condition expressions for conditional start events must be unique within a process." },
38
+ { id: "Z31", name: "duplicate-event-sub-process-condition", kind: "static", severity: "error", check: "model", since: "8.9", message: "Duplicate condition expression '%s' found in conditional start events of event subprocesses in process '%s'. ..." },
39
+ { id: "Z32", name: "duplicate-boundary-trigger", kind: "static", severity: "error", check: "model", since: "8.0", message: "(same messages as Z25/Z28/Z29)" },
40
+ { id: "Z33", name: "duplicate-process-extension", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:%s' extension element when exists. Please check process definition XML and retain only one extension element." },
41
+ { id: "Z34", name: "case-marker", kind: "static", severity: "error", check: "model", since: "8.10", message: "The case marker 'zeebe:case' is only allowed on a process, but was found on '%s'" },
42
+ { id: "Z35", name: "straight-through-loop", kind: "static", severity: "error", check: "none", since: "8.0", message: "Processes are not allowed to contain a straight-through processing loop: a > b > a" },
43
+ { id: "Z36", name: "multi-tenant-feature", kind: "static", severity: "error", check: "none", since: "8.0", message: "`%s`: - Process: %s ... ERROR" },
44
+ { id: "Z37", name: "start-event-definitions", kind: "static", severity: "error", check: "model", since: "8.0", message: "Start event can't have more than one type" },
45
+ { id: "Z38", name: "start-form-public-access", kind: "static", severity: "error", check: "model", since: "8.10", message: "Start event forms with public access enabled are not supported. Please remove the 'publicAccess' property or set it to 'false'" },
46
+ { id: "Z39", name: "start-event-start-listener", kind: "static", severity: "error", check: "model", since: "8.6", message: "Execution listeners of type 'start' are not supported by start events" },
47
+ { id: "Z40", name: "event-sub-process-start-typed", kind: "static", severity: "error", check: "model", since: "8.0", message: "Start events in event subprocesses must be one of: message, timer, error, signal, escalation or conditional" },
48
+ { id: "Z41", name: "compensation-event-sub-process-level", kind: "static", severity: "error", check: "model", since: "8.5", message: "A compensation event subprocess is not allowed on the process level" },
49
+ { id: "Z42", name: "interrupting-event-sub-process-in-ad-hoc", kind: "static", severity: "error", check: "model", since: "8.7", message: "An interrupting event subprocess is not allowed inside an ad-hoc subprocess" },
50
+ { id: "Z43", name: "interrupting-timer-cycle", kind: "static", severity: "error", check: "model", since: "8.0", message: "Interrupting timer event with time cycle is not allowed." },
51
+ { id: "Z44", name: "timer-one-value", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must be exactly one type of timer: timeDuration, timeDate or timeCycle" },
52
+ { id: "Z45", name: "intermediate-timer-value", kind: "static", severity: "error", check: "model", since: "8.0", message: "Intermediate timer catch event must have either a time duration or a time date." },
53
+ { id: "Z46", name: "timer-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Invalid timer %s expression (%s)" },
54
+ { id: "Z47", name: "timer-date-range", kind: "static", severity: "error", check: "none", since: "8.0", message: "TimerFailures.dueDateOutOfRange" },
55
+ { id: "Z48", name: "boundary-attached", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must be attached to an activity" },
56
+ { id: "Z49", name: "boundary-incoming", kind: "static", severity: "error", check: "model", since: "8.0", message: "Cannot have incoming sequence flows" },
57
+ { id: "Z50", name: "boundary-event-definitions", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one event definition" },
58
+ { id: "Z51", name: "compensation-boundary-shape", kind: "static", severity: "error", check: "model", since: "8.5", message: "Compensation boundary events must have a compensation association and no outgoing sequence flows" },
59
+ { id: "Z52", name: "boundary-listeners", kind: "static", severity: "error", check: "model", since: "8.6", message: "Execution listeners of type 'start' are not supported by boundary events" },
60
+ { id: "Z53", name: "end-event-outgoing", kind: "static", severity: "error", check: "model", since: "8.0", message: "End events must not have outgoing sequence flows to other elements." },
61
+ { id: "Z54", name: "end-event-definitions", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have at most one event definition" },
62
+ { id: "Z55", name: "compensation-wait-for-completion", kind: "static", severity: "error", check: "model", since: "8.5", message: "A compensation end event waitForCompletion attribute must be true or not present" },
63
+ { id: "Z56", name: "error-end-end-listener", kind: "static", severity: "error", check: "model", since: "8.6", message: "Execution listeners of type 'end' are not supported by [error] end events" },
64
+ { id: "Z57", name: "intermediate-catch-definitions", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one event definition" },
65
+ { id: "Z58", name: "conditional-condition", kind: "feel", severity: "error", check: "model", since: "8.9", message: "Attribute 'condition' must be present and not empty" },
66
+ { id: "Z59", name: "conditional-filter-events", kind: "static", severity: "error", check: "model", since: "8.9", message: "Variable event '%s' is not valid. Must be one of: create, update or a comma-separated list of both." },
67
+ { id: "Z60", name: "event-based-gateway-duplicate-condition", kind: "static", severity: "error", check: "model", since: "8.9", message: "Multiple conditional event definitions with the same condition expression '%s' are not allowed." },
68
+ { id: "Z61", name: "message-reference", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must reference a message" },
69
+ { id: "Z62", name: "message-name", kind: "static", severity: "error", check: "model", since: "8.0", message: "Name must be present and not empty" },
70
+ { id: "Z63", name: "message-subscription", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one zeebe:subscription extension element" },
71
+ { id: "Z64", name: "subscription-correlation-key", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'correlationKey' must be present and not empty" },
72
+ { id: "Z65", name: "correlation-key-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but found static value '%s'. An expression must start with '=' ..." },
73
+ { id: "Z66", name: "message-name-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "FEEL parse failure message" },
74
+ { id: "Z67", name: "message-start-name-constant", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected constant expression but found '%s', which could not be evaluated without context: %s" },
75
+ { id: "Z68", name: "message-start-name-length", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected message name '%s' to be at most %d characters long (configured max-name-length), but was %d characters." },
76
+ { id: "Z69", name: "message-throw-implementation", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have either one 'zeebe:publishMessage' or one 'zeebe:taskDefinition' extension element" },
77
+ { id: "Z70", name: "message-throw-reference", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must reference a message" },
78
+ { id: "Z71", name: "publish-message-correlation-key", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'correlationKey' must be present and not empty" },
79
+ { id: "Z72", name: "receive-task-message", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must reference a message" },
80
+ { id: "Z73", name: "receive-task-boundary-message", kind: "static", severity: "error", check: "model", since: "8.0", message: "Cannot reference the same message name as a boundary event" },
81
+ { id: "Z74", name: "signal-reference", kind: "static", severity: "error", check: "model", since: "8.2", message: "Must reference a signal" },
82
+ { id: "Z75", name: "signal-name", kind: "static", severity: "error", check: "model", since: "8.2", message: "Name must be present and not empty" },
83
+ { id: "Z76", name: "signal-name-expression", kind: "feel", severity: "error", check: "model", since: "8.2", message: "Expected constant expression but found '%s', which could not be evaluated without context: %s" },
84
+ { id: "Z77", name: "error-end-reference", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must reference an error" },
85
+ { id: "Z78", name: "error-code", kind: "static", severity: "error", check: "model", since: "8.0", message: "ErrorCode must be present and not empty" },
86
+ { id: "Z79", name: "error-catch-code-expression", kind: "static", severity: "error", check: "model", since: "8.0", message: "The errorCode of the error catch event is not allowed to be an expression" },
87
+ { id: "Z80", name: "escalation-throw-reference", kind: "static", severity: "error", check: "model", since: "8.2", message: "Must reference an escalation" },
88
+ { id: "Z81", name: "escalation-code", kind: "static", severity: "error", check: "model", since: "8.2", message: "EscalationCode must be present and not empty" },
89
+ { id: "Z82", name: "escalation-catch-code-expression", kind: "static", severity: "error", check: "model", since: "8.2", message: "The escalationCode of the escalation catch event is not allowed to be an expression" },
90
+ { id: "Z83", name: "link-name", kind: "static", severity: "error", check: "model", since: "8.2", message: "Link name must be present and not empty." },
91
+ { id: "Z84", name: "link-throw-catch", kind: "static", severity: "error", check: "model", since: "8.2", message: "Can't find an catch link event for the throw link event with the name '%s'." },
92
+ { id: "Z85", name: "duplicate-link-catch", kind: "static", severity: "error", check: "model", since: "8.2", message: "Multiple intermediate catch link event definitions with the same name '%s' are not allowed." },
93
+ { id: "Z86", name: "compensation-activity-exists", kind: "static", severity: "error", check: "model", since: "8.5", message: "The referenced compensation activity '%s' doesn't exist" },
94
+ { id: "Z87", name: "compensation-activity-handler", kind: "static", severity: "error", check: "model", since: "8.5", message: "The referenced compensation activity '%s' must have either a compensation boundary event or be a subprocess" },
95
+ { id: "Z88", name: "compensation-activity-scope", kind: "static", severity: "error", check: "model", since: "8.5", message: "The referenced compensation activity '%s' must be in the same scope as the compensation throw event" },
96
+ { id: "Z89", name: "compensation-handler-flows", kind: "static", severity: "error", check: "model", since: "8.5", message: "A compensation handler should have no incoming sequence flows" },
97
+ { id: "Z90", name: "service-task-definition", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:taskDefinition' extension element" },
98
+ { id: "Z91", name: "task-definition-type", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'type' must be present and not empty" },
99
+ { id: "Z92", name: "task-definition-retries", kind: "static", severity: "error", check: "none", since: "8.0", message: "Attribute 'retries' must be present and not empty" },
100
+ { id: "Z93", name: "task-definition-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but not found." },
101
+ { id: "Z94", name: "duplicate-task-extension", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:%s' extension element when exists. Please check process definition XML and retain only one extension element." },
102
+ { id: "Z95", name: "header-reserved-key", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'key' contains '%s', but header keys starting with '%s' are reserved for internal use." },
103
+ { id: "Z96", name: "duplicate-header-key", kind: "static", severity: "error", check: "model", since: "8.0", message: "Headers contain duplicate entries for key '%s'" },
104
+ { id: "Z97", name: "empty-header", kind: "static", severity: "info", check: "none", since: "8.0", message: "(log only)" },
105
+ { id: "Z98", name: "script-task-implementation", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have either one 'zeebe:script' or one 'zeebe:taskDefinition' extension element" },
106
+ { id: "Z99", name: "script-attributes", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'expression' must be present and not empty" },
107
+ { id: "Z100", name: "script-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but found static value '%s'. An expression must start with '='..." },
108
+ { id: "Z101", name: "job-priority-mode", kind: "static", severity: "error", check: "model", since: "8.10", message: "'zeebe:jobPriorityDefinition' is only allowed in job-worker mode ('zeebe:taskDefinition')" },
109
+ { id: "Z102", name: "job-priority-value", kind: "static", severity: "error", check: "model", since: "8.10", message: "Attribute 'priority' must be present and not empty" },
110
+ { id: "Z103", name: "send-task-implementation", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have either one 'zeebe:publishMessage' or one 'zeebe:taskDefinition' extension element" },
111
+ { id: "Z104", name: "send-task-message", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must reference a message" },
112
+ { id: "Z105", name: "input-mapping", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected path expression but not found." },
113
+ { id: "Z106", name: "output-mapping", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but not found." },
114
+ { id: "Z107", name: "secret-literal", kind: "feel", severity: "error", check: "model", since: "8.10", message: "Secret reference(s) %s must be used as an expression (e.g. '=camunda.secrets.<name>'), not as a string literal, in %s '%s'." },
115
+ { id: "Z108", name: "secret-in-list", kind: "feel", severity: "error", check: "model", since: "8.10", message: "Input mapping source '%s' puts a secret reference inside a list, or inside a context built by an 'if' branch. ..." },
116
+ { id: "Z109", name: "variable-mapping-build", kind: "feel", severity: "error", check: "none", since: "8.0", message: "Failed to build variable mapping expression: %s" },
117
+ { id: "Z110", name: "linked-resource-attributes", kind: "static", severity: "error", check: "model", since: "8.6", message: "Attribute 'resourceId' must be present and not empty" },
118
+ { id: "Z111", name: "linked-resource-deployment", kind: "context", severity: "error", check: "context", since: "8.10", message: "Expected to find form with id '%s' in current deployment, but not found." },
119
+ { id: "Z112", name: "agent-type-required", kind: "static", severity: "error", check: "model", since: "8.10", message: "Attribute 'agentType' must be present and not empty" },
120
+ { id: "Z113", name: "agent-type-placement", kind: "static", severity: "error", check: "model", since: "8.10", message: "agentType 'aiAgentSubProcess' is only allowed on an ad-hoc sub-process." },
121
+ { id: "Z114", name: "duplicate-user-task-extension", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:%s' extension element when exists. ..." },
122
+ { id: "Z115", name: "form-definition-job-worker", kind: "static", severity: "error", check: "model", since: "8.0", message: "Exactly one of the attributes 'formId, formKey' must be present and not blank" },
123
+ { id: "Z116", name: "form-definition-native", kind: "static", severity: "error", check: "model", since: "8.4", message: "Exactly one of the attributes 'formId, externalReference' must be present and not blank for native user tasks" },
124
+ { id: "Z117", name: "form-binding-type", kind: "static", severity: "error", check: "model", since: "8.6", message: "Attribute 'versionTag' must be present and not empty if 'bindingType' is 'versionTag'" },
125
+ { id: "Z118", name: "form-deployment", kind: "context", severity: "error", check: "context", since: "8.6", message: "Expected to find form with id '%s' in current deployment, but not found." },
126
+ { id: "Z119", name: "embedded-form", kind: "static", severity: "error", check: "model", since: "8.0", message: "User task form text content has to be present and not empty" },
127
+ { id: "Z120", name: "assignment-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected static value to be a list of comma-separated values, e.g. 'a,b,c', but found '%s'." },
128
+ { id: "Z121", name: "task-schedule-date", kind: "feel", severity: "error", check: "model", since: "8.2", message: "Expected static value to be a valid DateTime String, e.g. '2023-03-02T15:35+02:00', but found '%s'." },
129
+ { id: "Z122", name: "user-task-priority", kind: "feel", severity: "error", check: "model", since: "8.6", message: "Attribute 'priority' must be present and not empty" },
130
+ { id: "Z123", name: "task-listener-placement", kind: "static", severity: "error", check: "model", since: "8.7", message: "Task listeners are only allowed on Camunda user tasks." },
131
+ { id: "Z124", name: "task-listener-attributes", kind: "static", severity: "error", check: "model", since: "8.7", message: "Attribute 'eventType' must be present and not empty" },
132
+ { id: "Z125", name: "call-activity-called-element", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:calledElement' extension element" },
133
+ { id: "Z126", name: "called-element-process-id", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'processId' must be present and not empty" },
134
+ { id: "Z127", name: "called-element-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but not found." },
135
+ { id: "Z128", name: "called-element-business-id", kind: "feel", severity: "error", check: "model", since: "8.10", message: "Expected static value to be no longer than 256 characters, but found '%s'." },
136
+ { id: "Z129", name: "called-element-binding-type", kind: "static", severity: "error", check: "model", since: "8.6", message: "see Z117" },
137
+ { id: "Z130", name: "called-element-deployment", kind: "context", severity: "error", check: "context", since: "8.6", message: "Expected to find process with id '%s' in current deployment, but not found." },
138
+ { id: "Z131", name: "called-element-latest", kind: "static", severity: "error", check: "none", since: "8.0", message: "(none - runtime incident only)" },
139
+ { id: "Z132", name: "business-rule-task-implementation", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have either one 'zeebe:calledDecision' or one 'zeebe:taskDefinition' extension element" },
140
+ { id: "Z133", name: "called-decision-attributes", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'decisionId' must be present and not empty" },
141
+ { id: "Z134", name: "called-decision-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "FEEL parse failure" },
142
+ { id: "Z135", name: "called-decision-binding-type", kind: "static", severity: "error", check: "model", since: "8.6", message: "see Z117" },
143
+ { id: "Z136", name: "called-decision-deployment", kind: "context", severity: "error", check: "context", since: "8.6", message: "Expected to find decision with id '%s' in current deployment, but not found." },
144
+ { id: "Z137", name: "duplicate-called-decision", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:calledDecision' extension element when exists..." },
145
+ { id: "Z138", name: "exclusive-default-source", kind: "static", severity: "error", check: "model", since: "8.0", message: "Default flow must start at gateway" },
146
+ { id: "Z139", name: "inclusive-default-source", kind: "static", severity: "error", check: "model", since: "8.0", message: "Default flow must start at gateway" },
147
+ { id: "Z140", name: "exclusive-flow-condition", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have a condition or be default flow" },
148
+ { id: "Z141", name: "inclusive-flow-condition", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have a condition" },
149
+ { id: "Z142", name: "conditional-flow-source", kind: "static", severity: "error", check: "model", since: "8.0", message: "Conditional sequence flows are only supported at exclusive or inclusive gateway" },
150
+ { id: "Z143", name: "condition-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but found static value '%s'. An expression must start with '=' (e.g. '=%s')." },
151
+ { id: "Z144", name: "event-based-gateway-outgoing", kind: "static", severity: "error", check: "model", since: "8.0", message: "Event-based gateway must have at least 2 outgoing sequence flows." },
152
+ { id: "Z145", name: "event-based-gateway-target", kind: "static", severity: "error", check: "model", since: "8.0", message: "Event-based gateway must not have an outgoing sequence flow to other elements than message/timer/signal/conditional intermediate catch events." },
153
+ { id: "Z146", name: "event-based-gateway-duplicate-trigger", kind: "static", severity: "error", check: "model", since: "8.0", message: "Multiple message event definitions with the same name '%s' are not allowed." },
154
+ { id: "Z147", name: "event-based-gateway-target-incoming", kind: "static", severity: "error", check: "model", since: "8.0", message: "Target elements of an event gateway must not have any additional incoming sequence flows other than that from the event gateway." },
155
+ { id: "Z148", name: "gateway-end-listener", kind: "static", severity: "error", check: "model", since: "8.6", message: "Execution listeners of type 'end' are not supported by gateway element" },
156
+ { id: "Z149", name: "multi-instance-loop-characteristics", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:loopCharacteristics' extension element" },
157
+ { id: "Z150", name: "multi-instance-input-collection", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'inputCollection' must be present and not empty" },
158
+ { id: "Z151", name: "multi-instance-output-pair", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute 'outputElement' must be present if the attribute 'outputCollection' is set" },
159
+ { id: "Z152", name: "multi-instance-expression", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but found static value '%s'. An expression must start with '=' ..." },
160
+ { id: "Z153", name: "before-all-listener", kind: "static", severity: "error", check: "model", since: "8.10", message: "Execution listeners with event type 'beforeAll' are only supported on multi-instance activities and are not valid on '%s'" },
161
+ { id: "Z154", name: "sub-process-start-event", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one start event" },
162
+ { id: "Z155", name: "sub-process-start-none", kind: "static", severity: "error", check: "model", since: "8.0", message: "Start events in subprocesses must be of type none" },
163
+ { id: "Z156", name: "sub-process-scope", kind: "static", severity: "error", check: "model", since: "8.0", message: "(as Z25,Z28,Z29,Z84,Z85)" },
164
+ { id: "Z157", name: "ad-hoc-activity", kind: "static", severity: "error", check: "model", since: "8.7", message: "Must have at least one activity." },
165
+ { id: "Z158", name: "ad-hoc-start-event", kind: "static", severity: "error", check: "model", since: "8.7", message: "Must not contain a start event." },
166
+ { id: "Z159", name: "ad-hoc-end-event", kind: "static", severity: "error", check: "model", since: "8.7", message: "Must not contain an end event." },
167
+ { id: "Z160", name: "ad-hoc-agent-cancel-remaining", kind: "static", severity: "error", check: "model", since: "8.8", message: "Must not define cancelRemainingInstances in combination with zeebe:taskDefinition." },
168
+ { id: "Z161", name: "ad-hoc-agent-completion-condition", kind: "static", severity: "error", check: "model", since: "8.8", message: "Must not define completionCondition in combination with zeebe:taskDefinition." },
169
+ { id: "Z162", name: "ad-hoc-agent-active-elements", kind: "static", severity: "error", check: "model", since: "8.8", message: "Must not define activeElementsCollection in combination with zeebe:taskDefinition." },
170
+ { id: "Z163", name: "ad-hoc-output-pair", kind: "static", severity: "error", check: "model", since: "8.8", message: "OutputElement and OutputCollection must both be set, or neither of them set. outputElement:%s and outputCollection:%s." },
171
+ { id: "Z164", name: "ad-hoc-expression", kind: "feel", severity: "error", check: "model", since: "8.7", message: "Expected expression but found static value ..." },
172
+ { id: "Z165", name: "duplicate-ad-hoc-extension", kind: "static", severity: "error", check: "model", since: "8.7", message: "Must have exactly one 'zeebe:adHoc' extension element when exists..." },
173
+ { id: "Z166", name: "ad-hoc-parameters", kind: "feel", severity: "error", check: "none", since: "8.8", message: "Failed to extract ad-hoc activity parameters for element '%s'. %s" },
174
+ { id: "Z167", name: "feel-parse", kind: "feel", severity: "error", check: "model", since: "8.0", message: "failed to parse expression '...': ..." },
175
+ { id: "Z168", name: "expression-required", kind: "static", severity: "error", check: "model", since: "8.0", message: "Expected expression but not found." },
176
+ { id: "Z169", name: "expression-non-static", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected expression but found static value '%s'. An expression must start with '=' (e.g. '=%s')." },
177
+ { id: "Z170", name: "static-value", kind: "feel", severity: "error", check: "model", since: "8.0", message: "Expected static value to %s, but found '%s'." },
178
+ { id: "Z171", name: "required-attribute", kind: "static", severity: "error", check: "model", since: "8.0", message: "Attribute '%s' must be present and not empty" },
179
+ { id: "Z172", name: "exactly-one-attribute", kind: "static", severity: "error", check: "model", since: "8.0", message: "Exactly one of the attributes '%s' must be present and not blank" },
180
+ { id: "Z173", name: "required-extension", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:%s' extension element" },
181
+ { id: "Z174", name: "duplicate-extension", kind: "static", severity: "error", check: "model", since: "8.0", message: "Must have exactly one 'zeebe:%s' extension element when exists. Please check process definition XML and retain only one extension element." },
182
+ { id: "Z175", name: "execution-listener-attributes", kind: "static", severity: "error", check: "model", since: "8.6", message: "Attribute 'eventType' must be present and not empty" },
183
+ { id: "Z176", name: "duplicate-execution-listeners-element", kind: "static", severity: "error", check: "model", since: "8.6", message: "Element must not have more than one execution listeners definition" },
184
+ { id: "Z177", name: "execution-listener-placement", kind: "static", severity: "error", check: "model", since: "8.6", message: "Execution listeners are not supported for the '%s' element. Currently, only %s elements can have execution listeners." },
185
+ { id: "Z178", name: "cancel-listener-placement", kind: "static", severity: "error", check: "model", since: "8.10", message: "The 'cancel' execution listener event type is not supported for the '%s' element. The 'cancel' event type is only supported on the 'process' element." },
186
+ { id: "Z179", name: "duplicate-execution-listener", kind: "static", severity: "error", check: "model", since: "8.6", message: "Found '%d' duplicates based on eventType[%s] and type[%s], these combinations should be unique." },
187
+ { id: "Z180", name: "execution-listener-null", kind: "static", severity: "error", check: "none", since: "8.6", message: "'%s' is null" },
188
+ { id: "Z181", name: "deployment-empty", kind: "static", severity: "error", check: "none", since: "8.0", message: "Expected to deploy at least one resource, but none given" },
189
+ { id: "Z182", name: "resource-name-length", kind: "static", severity: "error", check: "none", since: "8.0", message: "- Resource name '%s' exceeds maximum length of %d characters as it has a length of %d characters" },
190
+ { id: "Z183", name: "duplicate-process-id", kind: "static", severity: "error", check: "context", since: "8.0", message: "Duplicated process id '%s' in resources '%s' and '%s'" },
191
+ { id: "Z184", name: "duplicate-resource-id", kind: "static", severity: "error", check: "none", since: "8.0", message: "Expected the decision requirements ids to be unique within a deployment but found a duplicated id ..." },
192
+ { id: "Z185", name: "resource-extension", kind: "static", severity: "error", check: "none", since: "8.0", message: "No transformer found for resource: %s" },
193
+ { id: "Z186", name: "resource-empty", kind: "static", severity: "error", check: "none", since: "8.0", message: "'<name>': Unable to parse BPMN XML" },
194
+ { id: "Z187", name: "tenant-authorization", kind: "context", severity: "error", check: "none", since: "8.0", message: "Expected to perform operation '%s' on resource '%s' for tenant '%s', but user is not assigned to this tenant" },
195
+ { id: "Z188", name: "deployment-exists", kind: "context", severity: "error", check: "none", since: "8.0", message: "Deployment already exists" },
196
+ { id: "Z189", name: "timer-start-creation", kind: "feel", severity: "error", check: "none", since: "8.0", message: "Expected to create timer for start event, but encountered the following error: %s" },
197
+ { id: "Z190", name: "error-truncation", kind: "static", severity: "error", check: "none", since: "8.0", message: "and %d more errors and/or warnings" },
198
+ { id: "Z191", name: "form-resource", kind: "static", severity: "error", check: "none", since: "8.0", message: "Failed to parse form JSON. '%s': %s" },
199
+ { id: "Z192", name: "dmn-resource", kind: "static", severity: "error", check: "none", since: "8.0", message: "Expected the decision '%s' to have an ID, but it has none in resource '%s'" },
200
+ { id: "Z193", name: "rpa-resource", kind: "static", severity: "error", check: "none", since: "8.0", message: "Expected the resource id to be present, but none given" },
201
+ ];
202
+ //# sourceMappingURL=zeebe-rules.js.map
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * `node_modules/@bpmnkit/core/AGENTS.md`, then the one card for your type
5
5
  * (`agent-cards/bpmn.md`, `dmn.md` or `form.md`, ~1k tokens each) instead of the README.**
6
6
  */
7
- export { BpmnSdkError, ParseError, ValidationError, WriteError, WriteVerificationError, } from "./errors.js";
7
+ export { BpmnSdkError, ParseError, ValidationError, WriteError, WriteVerificationError, DeployabilityError, } from "./errors.js";
8
8
  export type { ErrorCode } from "./errors.js";
9
9
  export { isBpmnActivity, isBpmnAdHocSubProcess, isBpmnBoundaryEvent, isBpmnBusinessRuleTask, isBpmnCallActivity, isBpmnComplexGateway, isBpmnDataObject, isBpmnDataObjectReference, isBpmnDataStoreReference, isBpmnEndEvent, isBpmnEvent, isBpmnEventBasedGateway, isBpmnEventSubProcess, isBpmnExclusiveGateway, isBpmnGateway, isBpmnInclusiveGateway, isBpmnIntermediateCatchEvent, isBpmnIntermediateThrowEvent, isBpmnManualTask, isBpmnParallelGateway, isBpmnReceiveTask, isBpmnScriptTask, isBpmnSendTask, isBpmnServiceTask, isBpmnStartEvent, isBpmnSubProcess, isBpmnTask, isBpmnTransaction, isBpmnUserTask, } from "./bpmn/type-guards.js";
10
10
  export { findElement, findElementInProcess, findProcess, findSequenceFlow, getAllElements, getElementType, getZeebeExtensions, } from "./bpmn/utils.js";
@@ -17,6 +17,12 @@ export { diffSemantics, projectSemantics, semanticHash } from "./bpmn/semantic-h
17
17
  export type { JsonValue, SemanticDiff, SemanticProjection } from "./bpmn/semantic-hash.js";
18
18
  export { extractProcessContract, generateProcessTypes } from "./bpmn/process-types.js";
19
19
  export type { CodeContract, ContractElementRef, ContractHeader, ContractVariable, JobContract, MessageContract, ProcessContract, ProcessTypesOptions, } from "./bpmn/process-types.js";
20
+ export { isDeployable, validateDeployable, validateDeployableXml, } from "./bpmn/zeebe-validate/index.js";
21
+ export type { ValidateDeployableOptions, ZeebeLimits, ZeebeResolver, } from "./bpmn/zeebe-validate/index.js";
22
+ export { assertDeployable, assertDeployableXml, PLACEHOLDERS } from "./bpmn/zeebe-validate/gate.js";
23
+ export type { AssertDeployableOptions, DeployableResult, PlaceholderField, PlaceholderFill, } from "./bpmn/zeebe-validate/gate.js";
24
+ export { ZEEBE_LATEST_VERSION, ZEEBE_RULES, ZEEBE_VERIFIED_VERSION, } from "./generated/zeebe-rules.js";
25
+ export type { ZeebeRuleMeta, ZeebeRuleName } from "./generated/zeebe-rules.js";
20
26
  export { detectExecutionPlatform, lintCategories, lintDiagram } from "./bpmn/lint.js";
21
27
  export type { DetectedPlatform, ExecutionPlatform, LintDiagnostic, LintOptions, LintReport, } from "./bpmn/lint.js";
22
28
  export { BPMNLINT_RULE_MAP, applyBpmnlintConfig, bpmnlintRuleForFinding, normalizeBpmnlintRuleName, parseBpmnlintConfig, resolveBpmnlintConfig, } from "./bpmn/bpmnlint.js";
@@ -36,7 +42,7 @@ export { checkDiCompleteness } from "./bpmn/di-check.js";
36
42
  export type { DiCompleteness } from "./bpmn/di-check.js";
37
43
  export { planeForElement, listPlaneElementIds } from "./bpmn/di-planes.js";
38
44
  export { DiagramBuilder, ProcessBuilder } from "./bpmn/bpmn-builder.js";
39
- export type { BranchBuilder, BuildOptions, MessageFlowOptions, ParticipantOptions, DiagramMessageOptions, SubProcessContentBuilder, ServiceTaskOptions, ScriptTaskOptions, UserTaskOptions, CallActivityOptions, BusinessRuleTaskOptions, ElementOptions, GatewayOptions, MultiInstanceOptions, SubProcessOptions, StartEventOptions, IntermediateCatchEventOptions, IntermediateThrowEventOptions, EndEventOptions, BoundaryEventOptions, ConditionVariableEvent, AdHocSubProcessOptions, AnnotateOptions, } from "./bpmn/bpmn-builder.js";
45
+ export type { BranchBuilder, BuildOptions, BuildGateOptions, SendTaskOptions, MessageFlowOptions, ParticipantOptions, DiagramMessageOptions, SubProcessContentBuilder, ServiceTaskOptions, ScriptTaskOptions, UserTaskOptions, CallActivityOptions, BusinessRuleTaskOptions, ElementOptions, GatewayOptions, MultiInstanceOptions, SubProcessOptions, StartEventOptions, IntermediateCatchEventOptions, IntermediateThrowEventOptions, EndEventOptions, BoundaryEventOptions, ConditionVariableEvent, AdHocSubProcessOptions, AnnotateOptions, } from "./bpmn/bpmn-builder.js";
40
46
  export type { BpmnDefinitions, BpmnProcess, BpmnFlowNode, BpmnFlowElement, BpmnSequenceFlow, BpmnBoundaryEvent, BpmnElementType, BpmnStartEvent, BpmnEndEvent, BpmnIntermediateCatchEvent, BpmnIntermediateThrowEvent, BpmnTask, BpmnServiceTask, BpmnScriptTask, BpmnUserTask, BpmnSendTask, BpmnReceiveTask, BpmnBusinessRuleTask, BpmnManualTask, BpmnCallActivity, BpmnSubProcess, BpmnAdHocSubProcess, BpmnEventSubProcess, BpmnTransaction, BpmnExclusiveGateway, BpmnParallelGateway, BpmnInclusiveGateway, BpmnEventBasedGateway, BpmnComplexGateway, BpmnCollaboration, BpmnParticipant, BpmnMessageFlow, BpmnLane, BpmnLaneSet, BpmnError, BpmnEscalation, BpmnMessage, BpmnSignal, BpmnTextAnnotation, BpmnAssociation, BpmnGroup, BpmnDataObject, BpmnDataObjectReference, BpmnDataStoreReference, BpmnConditionExpression, BpmnEventDefinition, BpmnTimerEventDefinition, BpmnErrorEventDefinition, BpmnEscalationEventDefinition, BpmnMessageEventDefinition, BpmnSignalEventDefinition, BpmnConditionalEventDefinition, BpmnLinkEventDefinition, BpmnCancelEventDefinition, BpmnTerminateEventDefinition, BpmnCompensateEventDefinition, BpmnMultiInstanceLoopCharacteristics, BpmnDiagram, BpmnDiPlane, BpmnDiShape, BpmnDiEdge, BpmnDiLabel, BpmnBounds, BpmnWaypoint, } from "./bpmn/bpmn-model.js";
41
47
  export type { RestConnectorConfig, RestAuthentication, HttpMethod, } from "./bpmn/rest-connector.js";
42
48
  export type { ZeebeExtensions, ZeebeTaskDefinition, ZeebeIoMapping, ZeebeIoMappingEntry, ZeebeTaskHeaders, ZeebeTaskHeaderEntry, ZeebeProperties, ZeebePropertyEntry, ZeebeFormDefinition, ZeebeCalledDecision, ZeebeLinkedResource, ZeebeCalledElement, ZeebeAssignmentDefinition, ZeebeTaskSchedule, ZeebePriorityDefinition, ZeebeSubscription, ZeebeAgentDefinition, } from "./bpmn/zeebe-extensions.js";
@@ -56,7 +62,7 @@ export type { TextFieldOptions, SelectOptions, RadioOptions, CheckboxOptions, Ch
56
62
  export type { FormComponent, FormCheckboxComponent, FormChecklistComponent, FormDefinition, FormExporter, FormGroupComponent, FormConditional, FormLayout, FormLayoutInput, FormRadioComponent, FormSelectComponent, FormTextAreaComponent, FormTextComponent, FormTextFieldComponent, FormValidation, FormValueOption, FormNumberComponent, FormDatetimeComponent, FormButtonComponent, FormTaglistComponent, FormTableComponent, FormImageComponent, FormDynamicListComponent, FormIframeComponent, FormSeparatorComponent, FormSpacerComponent, FormDocumentPreviewComponent, FormHtmlComponent, FormExpressionComponent, FormFilepickerComponent, FormUnknownComponent, } from "./form/form-model.js";
57
63
  export type { DecisionHandle, DrdBuilder, DrdDecisionOptions, DrgId, DrgRef, InputDataHandle, } from "./dmn/drd-builder.js";
58
64
  export type { DecisionTableBuilder, InputOptions, OutputOptions, RuleOptions, } from "./dmn/dmn-builder.js";
59
- export type { DmnDefinitions, DmnDecision, DmnDecisionTable, DmnInput, DmnOutput, DmnRule, DmnInputEntry, DmnOutputEntry, DmnDiagram, DmnDiagramShape, DmnDiagramEdge, DmnWaypoint, DmnTypeRef, DmnAggregation, HitPolicy, DmnInformationRequirement, DmnKnowledgeRequirement, DmnAuthorityRequirement, DmnInputData, DmnKnowledgeSource, DmnBusinessKnowledgeModel, DmnTextAnnotation, DmnAssociation, } from "./dmn/dmn-model.js";
65
+ export type { DmnDefinitions, DmnDecision, DmnDecisionTable, DmnInput, DmnOutput, DmnRule, DmnInputEntry, DmnOutputEntry, DmnDiagram, DmnDiagramShape, DmnDiagramEdge, DmnWaypoint, DmnTypeRef, DmnAggregation, HitPolicy, DmnInformationRequirement, DmnKnowledgeRequirement, DmnAuthorityRequirement, DmnInputData, DmnKnowledgeSource, DmnLiteralExpression, DmnBusinessKnowledgeModel, DmnTextAnnotation, DmnAssociation, } from "./dmn/dmn-model.js";
60
66
  export type { XmlElement } from "./types/xml-element.js";
61
67
  export { generateId, resetIdCounter } from "./types/id-generator.js";
62
68
  export { parseXml, parseXmlSpans, preserveFormatting, preserveFormattingVerified, serializeXml, } from "./xml/index.js";
@@ -109,7 +115,7 @@ export { exportSvg } from "./bpmn/svg.js";
109
115
  export type { SvgExportOptions } from "./bpmn/svg.js";
110
116
  export { buildProcessDocumentation, documentationToDocx, documentationToHtml, documentationToMarkdown, renderDocumentationDocx, renderDocumentationHtml, renderDocumentationMarkdown, } from "./doc/index.js";
111
117
  export type { DocumentationLink, DocumentationOptions, DocumentedDecision, DocumentedElement, DocumentedForm, DocumentedFormField, DocumentedLane, DocumentedMessageFlow, DocumentedProcess, DocumentedProperty, DocxDocumentationOptions, ProcessDocumentation, } from "./doc/index.js";
112
- export type { CompactDiagram, CompactElement, CompactFlow, CompactNote, CompactProcess, } from "./bpmn/compact.js";
118
+ export type { CompactDiagram, CompactElement, CompactFlow, CompactNote, CompactProcess, ExpandOptions, } from "./bpmn/compact.js";
113
119
  export { compilePlan, extractPlan, mergePlan, slugify, uniqueId, } from "./plan/index.js";
114
120
  export type { CompilePlanOptions, ConnectorApplyResult, ConnectorResolver, ExtractResult, PlanAgentTool, PlanAiAgentStep, PlanBranch, PlanBusinessRuleTaskStep, PlanCallActivityStep, PlanConnectorRef, PlanConnectorStep, PlanEndStep, PlanErrorBoundary, PlanGatewayStep, PlanInputVariable, PlanProblem, PlanRawStep, PlanReceiveTaskStep, PlanScenario, PlanScriptTaskStep, PlanSendTaskStep, PlanServiceTaskStep, PlanStartStep, PlanStep, PlanSubProcessStep, PlanTimerBoundary, PlanUserTaskStep, PlanWaitStep, ProcessPlan, SynthResult, UnsupportedElement, } from "./plan/index.js";
115
121
  export { listSecrets } from "./bpmn/secrets.js";
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * `node_modules/@bpmnkit/core/AGENTS.md`, then the one card for your type
5
5
  * (`agent-cards/bpmn.md`, `dmn.md` or `form.md`, ~1k tokens each) instead of the README.**
6
6
  */
7
- export { BpmnSdkError, ParseError, ValidationError, WriteError, WriteVerificationError, } from "./errors.js";
7
+ export { BpmnSdkError, ParseError, ValidationError, WriteError, WriteVerificationError, DeployabilityError, } from "./errors.js";
8
8
  export { isBpmnActivity, isBpmnAdHocSubProcess, isBpmnBoundaryEvent, isBpmnBusinessRuleTask, isBpmnCallActivity, isBpmnComplexGateway, isBpmnDataObject, isBpmnDataObjectReference, isBpmnDataStoreReference, isBpmnEndEvent, isBpmnEvent, isBpmnEventBasedGateway, isBpmnEventSubProcess, isBpmnExclusiveGateway, isBpmnGateway, isBpmnInclusiveGateway, isBpmnIntermediateCatchEvent, isBpmnIntermediateThrowEvent, isBpmnManualTask, isBpmnParallelGateway, isBpmnReceiveTask, isBpmnScriptTask, isBpmnSendTask, isBpmnServiceTask, isBpmnStartEvent, isBpmnSubProcess, isBpmnTask, isBpmnTransaction, isBpmnUserTask, } from "./bpmn/type-guards.js";
9
9
  export { findElement, findElementInProcess, findProcess, findSequenceFlow, getAllElements, getElementType, getZeebeExtensions, } from "./bpmn/utils.js";
10
10
  export { Bpmn, SAMPLE_BPMN_XML } from "./bpmn/index.js";
@@ -12,6 +12,9 @@ export { stripCamunda8 } from "./bpmn/strip-camunda8.js";
12
12
  export { applyAutoLayout } from "./bpmn/auto-layout.js";
13
13
  export { diffSemantics, projectSemantics, semanticHash } from "./bpmn/semantic-hash.js";
14
14
  export { extractProcessContract, generateProcessTypes } from "./bpmn/process-types.js";
15
+ export { isDeployable, validateDeployable, validateDeployableXml, } from "./bpmn/zeebe-validate/index.js";
16
+ export { assertDeployable, assertDeployableXml, PLACEHOLDERS } from "./bpmn/zeebe-validate/gate.js";
17
+ export { ZEEBE_LATEST_VERSION, ZEEBE_RULES, ZEEBE_VERIFIED_VERSION, } from "./generated/zeebe-rules.js";
15
18
  export { detectExecutionPlatform, lintCategories, lintDiagram } from "./bpmn/lint.js";
16
19
  export { BPMNLINT_RULE_MAP, applyBpmnlintConfig, bpmnlintRuleForFinding, normalizeBpmnlintRuleName, parseBpmnlintConfig, resolveBpmnlintConfig, } from "./bpmn/bpmnlint.js";
17
20
  export { analyzeCamundaCompat, applyCamundaCompatConfig, isCamundaCompatFinding, normalizeCamundaVersion, splitCamundaCompatConfig, } from "./bpmn/camunda-compat.js";
@@ -123,12 +123,32 @@ sides) {
123
123
  return result;
124
124
  const annotationIds = new Set(process.textAnnotations.map((a) => a.id));
125
125
  const elementForAnnotation = new Map();
126
+ const annotationPairs = [];
126
127
  for (const assoc of process.associations) {
127
- if (annotationIds.has(assoc.targetRef))
128
+ if (annotationIds.has(assoc.targetRef) && annotationIds.has(assoc.sourceRef))
129
+ annotationPairs.push([assoc.sourceRef, assoc.targetRef]);
130
+ else if (annotationIds.has(assoc.targetRef))
128
131
  elementForAnnotation.set(assoc.targetRef, assoc.sourceRef);
129
132
  else if (annotationIds.has(assoc.sourceRef))
130
133
  elementForAnnotation.set(assoc.sourceRef, assoc.targetRef);
131
134
  }
135
+ // An annotation linked only to another annotation packs beside that one's
136
+ // element, so the association between the two stays short.
137
+ for (let changed = true; changed;) {
138
+ changed = false;
139
+ for (const [a, b] of annotationPairs) {
140
+ const forA = elementForAnnotation.get(a);
141
+ const forB = elementForAnnotation.get(b);
142
+ if (forA === undefined && forB !== undefined) {
143
+ elementForAnnotation.set(a, forB);
144
+ changed = true;
145
+ }
146
+ else if (forB === undefined && forA !== undefined) {
147
+ elementForAnnotation.set(b, forA);
148
+ changed = true;
149
+ }
150
+ }
151
+ }
132
152
  const nodeById = new Map(layoutNodes.map((n) => [n.id, n]));
133
153
  const mainFlowY = computeMainFlowY(layoutNodes);
134
154
  const items = [];