bpmnlint-plugin-camunda-compat 0.6.0 → 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
CHANGED
@@ -6,6 +6,18 @@ 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
|
+
|
13
|
+
## 0.6.2
|
14
|
+
|
15
|
+
* `FIX`: fix error message formatting ([#27](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/27))
|
16
|
+
|
17
|
+
## 0.6.1
|
18
|
+
|
19
|
+
* `FIX`: lanes supported ([#26](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/26))
|
20
|
+
|
9
21
|
## 0.6.0
|
10
22
|
|
11
23
|
* `FEAT`: adjust error messages to be more friendly ([#22](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/22))
|
package/package.json
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
const { is } = require('bpmnlint-utils');
|
2
|
+
|
1
3
|
const {
|
2
4
|
checkEventDefinition,
|
3
5
|
checkFlowNode,
|
@@ -6,7 +8,6 @@ const {
|
|
6
8
|
hasEventDefinitionOfType,
|
7
9
|
hasEventDefinitionOfTypeOrNone,
|
8
10
|
hasMessageReference,
|
9
|
-
hasNoLanes,
|
10
11
|
isNotBpmn,
|
11
12
|
withTranslations
|
12
13
|
} = require('./utils/element');
|
@@ -36,6 +37,7 @@ module.exports = [
|
|
36
37
|
'bpmn:MessageFlow',
|
37
38
|
'bpmn:ParallelGateway',
|
38
39
|
'bpmn:Participant',
|
40
|
+
'bpmn:Process',
|
39
41
|
'bpmn:SequenceFlow',
|
40
42
|
'bpmn:TextAnnotation',
|
41
43
|
{
|
@@ -135,15 +137,6 @@ module.exports = [
|
|
135
137
|
}
|
136
138
|
)
|
137
139
|
},
|
138
|
-
{
|
139
|
-
type: 'bpmn:Process',
|
140
|
-
check: withTranslations(
|
141
|
-
hasNoLanes,
|
142
|
-
{
|
143
|
-
'Element of type <bpmn:Process> (<bpmn:LaneSet>) not supported by {{ executionPlatform }}': 'A <Lane> is not supported by Camunda Platform 8 (Zeebe 1.0)'
|
144
|
-
}
|
145
|
-
)
|
146
|
-
},
|
147
140
|
{
|
148
141
|
type: 'bpmn:ReceiveTask',
|
149
142
|
check: withTranslations(
|
@@ -202,7 +195,14 @@ module.exports = [
|
|
202
195
|
checkEventDefinition(hasMessageReference),
|
203
196
|
checkIf(
|
204
197
|
checkEventDefinition(hasZeebeSubscription),
|
205
|
-
|
198
|
+
checkEvery(
|
199
|
+
checkEventDefinition(hasMessageReference),
|
200
|
+
(node) => {
|
201
|
+
const { $parent } = node;
|
202
|
+
|
203
|
+
return $parent && is($parent, 'bpmn:SubProcess');
|
204
|
+
}
|
205
|
+
)
|
206
206
|
)
|
207
207
|
),
|
208
208
|
hasEventDefinitionOfType('bpmn:MessageEventDefinition')
|
@@ -26,7 +26,7 @@ module.exports = [
|
|
26
26
|
'Element of type <bpmn:BusinessRuleTask> must have one or many extension elements of type <zeebe:CalledDecision> or <zeebe:TaskDefinition>': 'A <Business Rule Task> must have a defined <Implementation>',
|
27
27
|
'Element of type <zeebe:TaskDefinition> must have property <type>': 'A <Business Rule Task> with <Implementation: Job worker> must have a defined <Task definition type>',
|
28
28
|
'Element of type <zeebe:CalledDecision> must have property <decisionId>': 'A <Business Rule Task> with <Implementation: DMN decision> must have a defined <Called decision ID>',
|
29
|
-
'Element of type <zeebe:CalledDecision> must have property <resultVariable>': 'A Business Rule Task with <Implementation: DMN decision> must have a defined <Result variable>',
|
29
|
+
'Element of type <zeebe:CalledDecision> must have property <resultVariable>': 'A <Business Rule Task> with <Implementation: DMN decision> must have a defined <Result variable>',
|
30
30
|
'Element of type <bpmn:MultiInstanceLoopCharacteristics> must have extension element of type <zeebe:LoopCharacteristics>': 'A <Business Rule Task> with <Multi-instance marker> must have a defined <Input collection>',
|
31
31
|
'Element of type <zeebe:LoopCharacteristics> must have property <inputCollection>': 'A <Business Rule Task> with <Multi-instance marker> must have a defined <Input collection>',
|
32
32
|
'Element of type <zeebe:LoopCharacteristics> must have property <outputElement> if it has property <outputCollection>': 'A <Business Rule Task> with <Multi-instance marker> and defined <Output collection> must have a defined <Output element>',
|
package/rules/utils/element.js
CHANGED
@@ -131,14 +131,6 @@ module.exports.hasMultiInstanceLoopCharacteristics = function(node) {
|
|
131
131
|
return true;
|
132
132
|
};
|
133
133
|
|
134
|
-
module.exports.hasNoLanes = function(node) {
|
135
|
-
const laneSets = node.get('laneSets');
|
136
|
-
|
137
|
-
return !laneSets
|
138
|
-
|| !laneSets.length
|
139
|
-
|| getElementNotSupportedError(node.$type, 'bpmn:LaneSet', [ 'laneSets' ]);
|
140
|
-
};
|
141
|
-
|
142
134
|
module.exports.isNotBpmn = function(node) {
|
143
135
|
return !is(node, 'bpmn:BaseElement');
|
144
136
|
};
|