bpmnlint-plugin-camunda-compat 2.28.0 → 2.28.1
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/index.js
CHANGED
@@ -96,7 +96,6 @@ const camundaCloud86Rules = withConfig({
|
|
96
96
|
|
97
97
|
const camundaCloud87Rules = withConfig({
|
98
98
|
...omit(camundaCloud86Rules, [ 'no-task-listeners' ]),
|
99
|
-
'zeebe-user-task': 'error',
|
100
99
|
'task-listener': 'error'
|
101
100
|
}, { version: '8.7' });
|
102
101
|
|
@@ -174,8 +173,7 @@ const rules = {
|
|
174
173
|
'user-task-definition': './rules/camunda-cloud/user-task-definition',
|
175
174
|
'user-task-form': './rules/camunda-cloud/user-task-form',
|
176
175
|
'version-tag': './rules/camunda-cloud/version-tag',
|
177
|
-
'wait-for-completion': './rules/camunda-cloud/wait-for-completion'
|
178
|
-
'zeebe-user-task': './rules/camunda-cloud/zeebe-user-task'
|
176
|
+
'wait-for-completion': './rules/camunda-cloud/wait-for-completion'
|
179
177
|
};
|
180
178
|
|
181
179
|
const configs = {
|
package/package.json
CHANGED
@@ -2,8 +2,7 @@ const { is } = require('bpmnlint-utils');
|
|
2
2
|
|
3
3
|
const {
|
4
4
|
findExtensionElement,
|
5
|
-
hasProperties
|
6
|
-
hasExtensionElement
|
5
|
+
hasProperties
|
7
6
|
} = require('../utils/element');
|
8
7
|
|
9
8
|
const { reportErrors } = require('../utils/reporter');
|
@@ -17,12 +16,6 @@ module.exports = skipInNonExecutableProcess(function() {
|
|
17
16
|
return;
|
18
17
|
}
|
19
18
|
|
20
|
-
let errors = hasExtensionElement(node, 'zeebe:UserTask', node);
|
21
|
-
|
22
|
-
if (errors && errors.length) {
|
23
|
-
reportErrors(node, reporter, errors);
|
24
|
-
}
|
25
|
-
|
26
19
|
const taskListeners = findExtensionElement(node, 'zeebe:TaskListeners');
|
27
20
|
|
28
21
|
if (!taskListeners) {
|
@@ -30,7 +23,7 @@ module.exports = skipInNonExecutableProcess(function() {
|
|
30
23
|
}
|
31
24
|
|
32
25
|
const listeners = taskListeners.get('listeners');
|
33
|
-
errors = listeners.flatMap(listener => hasProperties(listener, {
|
26
|
+
const errors = listeners.flatMap(listener => hasProperties(listener, {
|
34
27
|
type: {
|
35
28
|
required: true
|
36
29
|
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
const { is } = require('bpmnlint-utils');
|
2
|
-
|
3
|
-
const { reportErrors } = require('../utils/reporter');
|
4
|
-
|
5
|
-
const { skipInNonExecutableProcess } = require('../utils/rule');
|
6
|
-
|
7
|
-
const { hasExtensionElement } = require('../utils/element');
|
8
|
-
|
9
|
-
module.exports = skipInNonExecutableProcess(function() {
|
10
|
-
function check(node, reporter) {
|
11
|
-
if (!is(node, 'bpmn:UserTask')) {
|
12
|
-
return;
|
13
|
-
}
|
14
|
-
|
15
|
-
const errors = hasExtensionElement(node, 'zeebe:UserTask', node);
|
16
|
-
|
17
|
-
if (errors && errors.length) {
|
18
|
-
reportErrors(node, reporter, errors);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
return {
|
23
|
-
check
|
24
|
-
};
|
25
|
-
});
|