bpmnlint-plugin-camunda-compat 2.43.0 → 2.43.2
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/package.json
CHANGED
|
@@ -11,26 +11,26 @@ const { hasProperties } = require('../utils/element');
|
|
|
11
11
|
*/
|
|
12
12
|
module.exports = function() {
|
|
13
13
|
function check(node, reporter) {
|
|
14
|
-
|
|
15
|
-
// Only check event subprocesses
|
|
16
|
-
if (!isEventSubProcess(node)) {
|
|
14
|
+
if (!is(node, 'bpmn:StartEvent')) {
|
|
17
15
|
return;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
// Check if event subprocess
|
|
18
|
+
// Check if parent is event subprocess placed inside an ad-hoc subprocess
|
|
21
19
|
const parent = node.$parent;
|
|
22
|
-
if (!parent || !
|
|
20
|
+
if (!parent || !isEventSubProcess(parent)) {
|
|
23
21
|
return;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
const grandparent = parent.$parent;
|
|
25
|
+
if (!grandparent || !is(grandparent, 'bpmn:AdHocSubProcess')) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
28
|
|
|
29
|
-
const errors =
|
|
29
|
+
const errors = hasProperties(node, {
|
|
30
30
|
isInterrupting: {
|
|
31
31
|
value: false
|
|
32
32
|
}
|
|
33
|
-
}, node)
|
|
33
|
+
}, node);
|
|
34
34
|
|
|
35
35
|
if (errors.length) {
|
|
36
36
|
reportErrors(node, reporter, errors);
|
|
@@ -45,9 +45,3 @@ module.exports = function() {
|
|
|
45
45
|
function isEventSubProcess(node) {
|
|
46
46
|
return is(node, 'bpmn:SubProcess') && node.get('triggeredByEvent');
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
function getStartEvents(node) {
|
|
50
|
-
return node.get('flowElements').filter(element => {
|
|
51
|
-
return is(element, 'bpmn:StartEvent');
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -22,7 +22,7 @@ module.exports = skipInNonExecutableProcess(function() {
|
|
|
22
22
|
return {
|
|
23
23
|
meta: {
|
|
24
24
|
documentation: {
|
|
25
|
-
url: 'https://docs.camunda.io/docs/
|
|
25
|
+
url: 'https://docs.camunda.io/docs/apis-tools/migration-manuals/migrate-to-camunda-user-tasks'
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
check
|