bpmnlint-plugin-camunda-compat 2.28.1 → 2.30.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.
package/index.js
CHANGED
@@ -91,14 +91,19 @@ const camundaCloud86Rules = withConfig({
|
|
91
91
|
'duplicate-execution-listeners': 'error',
|
92
92
|
'execution-listener': 'error',
|
93
93
|
'priority-definition': 'error',
|
94
|
-
'version-tag': 'error'
|
94
|
+
'version-tag': 'error',
|
95
|
+
'zeebe-user-task': 'warn',
|
95
96
|
}, { version: '8.6' });
|
96
97
|
|
97
98
|
const camundaCloud87Rules = withConfig({
|
98
|
-
...
|
99
|
-
'task-listener': 'error'
|
99
|
+
...camundaCloud86Rules
|
100
100
|
}, { version: '8.7' });
|
101
101
|
|
102
|
+
const camundaCloud88Rules = withConfig({
|
103
|
+
...omit(camundaCloud87Rules, [ 'no-task-listeners' ]),
|
104
|
+
'task-listener': 'error'
|
105
|
+
}, { version: '8.8' });
|
106
|
+
|
102
107
|
const camundaPlatform719Rules = withConfig({
|
103
108
|
'history-time-to-live': 'info'
|
104
109
|
}, {
|
@@ -162,6 +167,7 @@ const rules = {
|
|
162
167
|
'no-zeebe-properties': './rules/camunda-cloud/no-zeebe-properties',
|
163
168
|
'no-zeebe-user-task': './rules/camunda-cloud/no-zeebe-user-task',
|
164
169
|
'priority-definition': './rules/camunda-cloud/priority-definition',
|
170
|
+
'zeebe-user-task': './rules/camunda-cloud/zeebe-user-task',
|
165
171
|
'secrets': './rules/camunda-cloud/secrets',
|
166
172
|
'sequence-flow-condition': './rules/camunda-cloud/sequence-flow-condition',
|
167
173
|
'signal-reference': './rules/camunda-cloud/signal-reference',
|
@@ -213,6 +219,9 @@ const configs = {
|
|
213
219
|
'camunda-cloud-8-7': {
|
214
220
|
rules: camundaCloud87Rules
|
215
221
|
},
|
222
|
+
'camunda-cloud-8-8': {
|
223
|
+
rules: camundaCloud88Rules
|
224
|
+
},
|
216
225
|
'camunda-platform-7-19': {
|
217
226
|
rules: camundaPlatform719Rules
|
218
227
|
},
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@ const { skipInNonExecutableProcess } = require('../utils/rule');
|
|
4
4
|
|
5
5
|
const { hasNoExtensionElement } = require('../utils/element');
|
6
6
|
|
7
|
-
const ALLOWED_VERSION = '8.
|
7
|
+
const ALLOWED_VERSION = '8.8';
|
8
8
|
|
9
9
|
module.exports = skipInNonExecutableProcess(function() {
|
10
10
|
function check(node, reporter) {
|
@@ -0,0 +1,25 @@
|
|
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
|
+
});
|