bpmnlint-plugin-camunda-compat 0.6.2 → 0.6.3
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/rules/camunda-cloud-1-0-checks.js +10 -1
package/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ All notable changes to [bpmnlint-plugin-camunda-compat](https://github.com/camun
|
|
6
6
|
|
7
7
|
___Note:__ Yet to be released changes appear here._
|
8
8
|
|
9
|
+
## 0.6.3
|
10
|
+
|
11
|
+
* `FIX`: backport of ([#34](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/34)) to v0.6
|
12
|
+
|
9
13
|
## 0.6.2
|
10
14
|
|
11
15
|
* `FIX`: fix error message formatting ([#27](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/27))
|
package/package.json
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
const { is } = require('bpmnlint-utils');
|
2
|
+
|
1
3
|
const {
|
2
4
|
checkEventDefinition,
|
3
5
|
checkFlowNode,
|
@@ -193,7 +195,14 @@ module.exports = [
|
|
193
195
|
checkEventDefinition(hasMessageReference),
|
194
196
|
checkIf(
|
195
197
|
checkEventDefinition(hasZeebeSubscription),
|
196
|
-
|
198
|
+
checkEvery(
|
199
|
+
checkEventDefinition(hasMessageReference),
|
200
|
+
(node) => {
|
201
|
+
const { $parent } = node;
|
202
|
+
|
203
|
+
return $parent && is($parent, 'bpmn:SubProcess');
|
204
|
+
}
|
205
|
+
)
|
197
206
|
)
|
198
207
|
),
|
199
208
|
hasEventDefinitionOfType('bpmn:MessageEventDefinition')
|