bpmnlint-plugin-camunda-compat 2.28.1 → 2.29.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 +3 -1
- package/package.json +1 -1
- package/rules/camunda-cloud/zeebe-user-task.js +25 -0
package/index.js
CHANGED
@@ -91,7 +91,8 @@ 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({
|
@@ -162,6 +163,7 @@ const rules = {
|
|
162
163
|
'no-zeebe-properties': './rules/camunda-cloud/no-zeebe-properties',
|
163
164
|
'no-zeebe-user-task': './rules/camunda-cloud/no-zeebe-user-task',
|
164
165
|
'priority-definition': './rules/camunda-cloud/priority-definition',
|
166
|
+
'zeebe-user-task': './rules/camunda-cloud/zeebe-user-task',
|
165
167
|
'secrets': './rules/camunda-cloud/secrets',
|
166
168
|
'sequence-flow-condition': './rules/camunda-cloud/sequence-flow-condition',
|
167
169
|
'signal-reference': './rules/camunda-cloud/signal-reference',
|
package/package.json
CHANGED
@@ -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
|
+
});
|