bpmnlint-plugin-camunda-compat 2.8.0 → 2.9.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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "bpmnlint-plugin-camunda-compat",
|
3
|
-
"version": "2.
|
4
|
-
"description": "A bpmnlint plug-in for Camunda
|
3
|
+
"version": "2.9.0",
|
4
|
+
"description": "A bpmnlint plug-in for Camunda compatibility",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"all": "npm run lint && npm test",
|
@@ -36,7 +36,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
36
36
|
};
|
37
37
|
|
38
38
|
if (allowedVersion) {
|
39
|
-
message = `Element of type <${ node.$type }> only allowed by Camunda
|
39
|
+
message = `Element of type <${ node.$type }> only allowed by Camunda ${ allowedVersion } or newer`;
|
40
40
|
|
41
41
|
data = {
|
42
42
|
...data,
|
@@ -77,7 +77,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
77
77
|
};
|
78
78
|
|
79
79
|
if (allowedVersion) {
|
80
|
-
message = `Element of type <${ node.$type }> with event definition of type <${ eventDefinition.$type }> only allowed by Camunda
|
80
|
+
message = `Element of type <${ node.$type }> with event definition of type <${ eventDefinition.$type }> only allowed by Camunda ${ allowedVersion } or newer`;
|
81
81
|
|
82
82
|
data = {
|
83
83
|
...data,
|
@@ -109,7 +109,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
109
109
|
};
|
110
110
|
|
111
111
|
if (allowedVersion) {
|
112
|
-
message = `Element of type <${ node.$type }> with no event definition only allowed by Camunda
|
112
|
+
message = `Element of type <${ node.$type }> with no event definition only allowed by Camunda ${ allowedVersion } or newer`;
|
113
113
|
|
114
114
|
data = {
|
115
115
|
...data,
|
@@ -51,7 +51,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
51
51
|
|
52
52
|
reportErrors(node, reporter, {
|
53
53
|
message: allowedVersion
|
54
|
-
? `Extension element of type <zeebe:CalledDecision> only allowed by Camunda
|
54
|
+
? `Extension element of type <zeebe:CalledDecision> only allowed by Camunda ${ allowedVersion } or newer`
|
55
55
|
: 'Extension element of type <zeebe:CalledDecision> not allowed',
|
56
56
|
path: getPath(calledDecision, node),
|
57
57
|
data: {
|
@@ -89,7 +89,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
89
89
|
|
90
90
|
reportErrors(node, reporter, {
|
91
91
|
message: allowedVersion
|
92
|
-
? `Extension element of type <zeebe:Script> only allowed by Camunda
|
92
|
+
? `Extension element of type <zeebe:Script> only allowed by Camunda ${ allowedVersion } or newer`
|
93
93
|
: 'Extension element of type <zeebe:Script> not allowed',
|
94
94
|
path: getPath(script, node),
|
95
95
|
data: {
|
@@ -127,7 +127,7 @@ module.exports = skipInNonExecutableProcess(function({ version }) {
|
|
127
127
|
|
128
128
|
reportErrors(node, reporter, {
|
129
129
|
message: allowedVersion
|
130
|
-
? `Extension element of type <zeebe:TaskDefinition> only allowed by Camunda
|
130
|
+
? `Extension element of type <zeebe:TaskDefinition> only allowed by Camunda ${ allowedVersion } or newer`
|
131
131
|
: 'Extension element of type <zeebe:TaskDefinition> not allowed',
|
132
132
|
path: getPath(taskDefinition, node),
|
133
133
|
data: {
|
@@ -83,7 +83,7 @@ function noExpression(node, propertyName, parentNode, allowedVersion) {
|
|
83
83
|
return;
|
84
84
|
}
|
85
85
|
|
86
|
-
let message = `Expression statement <${truncate(propertyValue)}> not supported`;
|
86
|
+
let message = `Expression statement <${ truncate(propertyValue) }> not supported`;
|
87
87
|
|
88
88
|
let data = {
|
89
89
|
type: ERROR_TYPES.EXPRESSION_NOT_ALLOWED,
|
@@ -93,7 +93,7 @@ function noExpression(node, propertyName, parentNode, allowedVersion) {
|
|
93
93
|
};
|
94
94
|
|
95
95
|
if (allowedVersion) {
|
96
|
-
message = `Expression statement <${truncate(propertyValue)}> only supported by Camunda
|
96
|
+
message = `Expression statement <${ truncate(propertyValue) }> only supported by Camunda ${allowedVersion} or newer`;
|
97
97
|
|
98
98
|
data = {
|
99
99
|
...data,
|
@@ -14,7 +14,13 @@ const { skipInNonExecutableProcess } = require('../utils/rule');
|
|
14
14
|
|
15
15
|
module.exports = skipInNonExecutableProcess(function() {
|
16
16
|
function check(node, reporter) {
|
17
|
-
if (!isAny(node, [
|
17
|
+
if (!isAny(node, [
|
18
|
+
'bpmn:StartEvent',
|
19
|
+
'bpmn:IntermediateThrowEvent',
|
20
|
+
'bpmn:IntermediateCatchEvent',
|
21
|
+
'bpmn:EndEvent',
|
22
|
+
'bpmn:BoundaryEvent'
|
23
|
+
])) {
|
18
24
|
return;
|
19
25
|
}
|
20
26
|
|
package/rules/utils/element.js
CHANGED
@@ -146,7 +146,7 @@ module.exports.hasProperties = function(node, properties, parentNode = null) {
|
|
146
146
|
...results,
|
147
147
|
{
|
148
148
|
message: allowedVersion
|
149
|
-
? `Element of type <${ node.$type }> without property <${ propertyName }> only allowed by Camunda
|
149
|
+
? `Element of type <${ node.$type }> without property <${ propertyName }> only allowed by Camunda ${ allowedVersion } or newer`
|
150
150
|
: `Element of type <${ node.$type }> must have property <${ propertyName }>`,
|
151
151
|
path: path
|
152
152
|
? [ ...path, propertyName ]
|
@@ -197,7 +197,7 @@ module.exports.hasProperties = function(node, properties, parentNode = null) {
|
|
197
197
|
...results,
|
198
198
|
{
|
199
199
|
message: allowedVersion
|
200
|
-
? `Property <${ propertyName }> of type <${ propertyValue.$type }> only allowed by Camunda
|
200
|
+
? `Property <${ propertyName }> of type <${ propertyValue.$type }> only allowed by Camunda ${ allowedVersion } or newer`
|
201
201
|
: `Property <${ propertyName }> of type <${ propertyValue.$type }> not allowed`,
|
202
202
|
path: path
|
203
203
|
? [ ...path, propertyName ]
|
@@ -237,7 +237,7 @@ module.exports.hasProperties = function(node, properties, parentNode = null) {
|
|
237
237
|
...results,
|
238
238
|
{
|
239
239
|
message: allowedVersion
|
240
|
-
? `Property <${ propertyName }> only allowed by Camunda
|
240
|
+
? `Property <${ propertyName }> only allowed by Camunda ${ allowedVersion } or newer`
|
241
241
|
: `Property <${ propertyName }> not allowed`,
|
242
242
|
path: path
|
243
243
|
? [ ...path, propertyName ]
|
@@ -257,7 +257,7 @@ module.exports.hasProperties = function(node, properties, parentNode = null) {
|
|
257
257
|
...results,
|
258
258
|
{
|
259
259
|
message: allowedVersion
|
260
|
-
? `Property value of <${ truncate(propertyValue) }> only allowed by Camunda
|
260
|
+
? `Property value of <${ truncate(propertyValue) }> only allowed by Camunda ${ allowedVersion } or newer`
|
261
261
|
: `Property value of <${ truncate(propertyValue) }> not allowed`,
|
262
262
|
path: path
|
263
263
|
? [ ...path, propertyName ]
|
@@ -341,7 +341,7 @@ module.exports.hasNoExtensionElement = function(node, type, parentNode = null, a
|
|
341
341
|
return [
|
342
342
|
{
|
343
343
|
message: allowedVersion
|
344
|
-
? `Extension element of type <${ type }> only allowed by Camunda
|
344
|
+
? `Extension element of type <${ type }> only allowed by Camunda ${ allowedVersion }`
|
345
345
|
: `Extension element of type <${ type }> not allowed`,
|
346
346
|
path: getPath(extensionElement, parentNode),
|
347
347
|
data: addAllowedVersion({
|
@@ -405,7 +405,7 @@ module.exports.hasExpression = function(node, propertyName, check, parentNode =
|
|
405
405
|
return [
|
406
406
|
{
|
407
407
|
message: allowedVersion
|
408
|
-
? `Expression value of <${ propertyValue }> only allowed by Camunda
|
408
|
+
? `Expression value of <${ propertyValue }> only allowed by Camunda ${ allowedVersion }`
|
409
409
|
: `Expression value of <${ propertyValue }> not allowed`,
|
410
410
|
path: path
|
411
411
|
? [ ...path, propertyName ]
|