@camunda/linting 3.29.0 → 3.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.
@@ -64,6 +64,7 @@ const rules = {
64
64
  "camunda-compat/no-zeebe-properties": "error",
65
65
  "camunda-compat/no-zeebe-user-task": "error",
66
66
  "camunda-compat/priority-definition": "error",
67
+ "camunda-compat/zeebe-user-task": "warn",
67
68
  "camunda-compat/secrets": "warn",
68
69
  "camunda-compat/sequence-flow-condition": "error",
69
70
  "camunda-compat/signal-reference": "error",
@@ -75,8 +76,7 @@ const rules = {
75
76
  "camunda-compat/user-task-definition": "warn",
76
77
  "camunda-compat/user-task-form": "error",
77
78
  "camunda-compat/version-tag": "error",
78
- "camunda-compat/wait-for-completion": "error",
79
- "camunda-compat/zeebe-user-task": "error"
79
+ "camunda-compat/wait-for-completion": "error"
80
80
  };
81
81
 
82
82
  const config = {
@@ -232,54 +232,54 @@ import rule_34 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/priority
232
232
 
233
233
  cache['bpmnlint-plugin-camunda-compat/priority-definition'] = rule_34;
234
234
 
235
- import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/secrets';
235
+ import rule_35 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/zeebe-user-task';
236
236
 
237
- cache['bpmnlint-plugin-camunda-compat/secrets'] = rule_35;
237
+ cache['bpmnlint-plugin-camunda-compat/zeebe-user-task'] = rule_35;
238
238
 
239
- import rule_36 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/sequence-flow-condition';
239
+ import rule_36 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/secrets';
240
240
 
241
- cache['bpmnlint-plugin-camunda-compat/sequence-flow-condition'] = rule_36;
241
+ cache['bpmnlint-plugin-camunda-compat/secrets'] = rule_36;
242
242
 
243
- import rule_37 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/signal-reference';
243
+ import rule_37 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/sequence-flow-condition';
244
244
 
245
- cache['bpmnlint-plugin-camunda-compat/signal-reference'] = rule_37;
245
+ cache['bpmnlint-plugin-camunda-compat/sequence-flow-condition'] = rule_37;
246
246
 
247
- import rule_38 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/start-event-form';
247
+ import rule_38 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/signal-reference';
248
248
 
249
- cache['bpmnlint-plugin-camunda-compat/start-event-form'] = rule_38;
249
+ cache['bpmnlint-plugin-camunda-compat/signal-reference'] = rule_38;
250
250
 
251
- import rule_39 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/subscription';
251
+ import rule_39 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/start-event-form';
252
252
 
253
- cache['bpmnlint-plugin-camunda-compat/subscription'] = rule_39;
253
+ cache['bpmnlint-plugin-camunda-compat/start-event-form'] = rule_39;
254
254
 
255
- import rule_40 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-listener';
255
+ import rule_40 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/subscription';
256
256
 
257
- cache['bpmnlint-plugin-camunda-compat/task-listener'] = rule_40;
257
+ cache['bpmnlint-plugin-camunda-compat/subscription'] = rule_40;
258
258
 
259
- import rule_41 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-schedule';
259
+ import rule_41 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-listener';
260
260
 
261
- cache['bpmnlint-plugin-camunda-compat/task-schedule'] = rule_41;
261
+ cache['bpmnlint-plugin-camunda-compat/task-listener'] = rule_41;
262
262
 
263
- import rule_42 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
263
+ import rule_42 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/task-schedule';
264
264
 
265
- cache['bpmnlint-plugin-camunda-compat/timer'] = rule_42;
265
+ cache['bpmnlint-plugin-camunda-compat/task-schedule'] = rule_42;
266
266
 
267
- import rule_43 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-definition';
267
+ import rule_43 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/timer';
268
268
 
269
- cache['bpmnlint-plugin-camunda-compat/user-task-definition'] = rule_43;
269
+ cache['bpmnlint-plugin-camunda-compat/timer'] = rule_43;
270
270
 
271
- import rule_44 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
271
+ import rule_44 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-definition';
272
272
 
273
- cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_44;
273
+ cache['bpmnlint-plugin-camunda-compat/user-task-definition'] = rule_44;
274
274
 
275
- import rule_45 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/version-tag';
275
+ import rule_45 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/user-task-form';
276
276
 
277
- cache['bpmnlint-plugin-camunda-compat/version-tag'] = rule_45;
277
+ cache['bpmnlint-plugin-camunda-compat/user-task-form'] = rule_45;
278
278
 
279
- import rule_46 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/wait-for-completion';
279
+ import rule_46 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/version-tag';
280
280
 
281
- cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_46;
281
+ cache['bpmnlint-plugin-camunda-compat/version-tag'] = rule_46;
282
282
 
283
- import rule_47 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/zeebe-user-task';
283
+ import rule_47 from 'bpmnlint-plugin-camunda-compat/rules/camunda-cloud/wait-for-completion';
284
284
 
285
- cache['bpmnlint-plugin-camunda-compat/zeebe-user-task'] = rule_47;
285
+ cache['bpmnlint-plugin-camunda-compat/wait-for-completion'] = rule_47;
@@ -1,4 +1,5 @@
1
1
  const baseUrl = 'https://docs.camunda.io/docs/next/components/modeler/reference/modeling-guidance/rules';
2
+ const userTaskMigrationUrl = 'https://docs.camunda.io/docs/next/apis-tools/migration-manuals/migrate-to-zeebe-user-tasks';
2
3
 
3
4
  export function getDocumentationUrl(rule) {
4
5
  if (rule === 'camunda-compat/called-element') {
@@ -29,6 +30,10 @@ export function getDocumentationUrl(rule) {
29
30
  return getUrl('history-time-to-live');
30
31
  }
31
32
 
33
+ if (rule === 'camunda-compat/zeebe-user-task') {
34
+ return userTaskMigrationUrl;
35
+ }
36
+
32
37
  return null;
33
38
  }
34
39
 
@@ -102,7 +102,7 @@ export function getErrorMessage(report, executionPlatform, executionPlatformVers
102
102
  }
103
103
 
104
104
  if (type === ERROR_TYPES.EXTENSION_ELEMENT_REQUIRED) {
105
- return getExtensionElementRequiredErrorMessage(report);
105
+ return getExtensionElementRequiredErrorMessage(report, executionPlatform, executionPlatformVersion);
106
106
  }
107
107
 
108
108
  if (type === ERROR_TYPES.PROPERTY_DEPENDENT_REQUIRED) {
@@ -313,7 +313,7 @@ function getExtensionElementNotAllowedErrorMessage(report, executionPlatform, ex
313
313
  }
314
314
 
315
315
  if (is(extensionElement, 'zeebe:UserTask')) {
316
- return getSupportedMessage('A <User Task> with <Implementation: Zeebe user task>', executionPlatform, executionPlatformVersion, allowedVersion);
316
+ return getSupportedMessage('A <User Task> with <Implementation: Camunda user task>', executionPlatform, executionPlatformVersion, allowedVersion);
317
317
  }
318
318
 
319
319
  if (is(node, 'bpmn:ScriptTask') && is(extensionElement, 'zeebe:Script')) {
@@ -347,7 +347,7 @@ function getExtensionElementNotAllowedErrorMessage(report, executionPlatform, ex
347
347
  return message;
348
348
  }
349
349
 
350
- function getExtensionElementRequiredErrorMessage(report) {
350
+ function getExtensionElementRequiredErrorMessage(report, executionPlatform, executionPlatformVersion) {
351
351
  const {
352
352
  data,
353
353
  message
@@ -390,7 +390,7 @@ function getExtensionElementRequiredErrorMessage(report) {
390
390
  }
391
391
 
392
392
  if (requiredExtensionElement === 'zeebe:UserTask') {
393
- return `${ getIndefiniteArticle(typeString) } <${ typeString }> must have <Implementation: Zeebe user task>`;
393
+ return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Implementation: Job worker> managed by Camunda is deprecated. Consider migrating to <Implementation: Camunda user task>.`;
394
394
  }
395
395
 
396
396
  return message;
@@ -570,7 +570,7 @@ function getPropertyRequiredErrorMessage(report, executionPlatform, executionPla
570
570
  return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Form type: Custom form key> must have a defined <Form key>`;
571
571
  }
572
572
 
573
- // Zeebe User Task
573
+ // Camunda User Task
574
574
  if (is(node, 'zeebe:FormDefinition') && isZeebeUserTask(parentNode)) {
575
575
  if (isEmptyString(node.get('externalReference'))) {
576
576
  return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Form type: External reference> must have a defined <External reference>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "3.29.0",
3
+ "version": "3.30.0",
4
4
  "description": "Linting for Camunda",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "@bpmn-io/diagram-js-ui": "^0.2.3",
33
33
  "bpmn-moddle": "^9.0.1",
34
34
  "bpmnlint": "^10.3.1",
35
- "bpmnlint-plugin-camunda-compat": "^2.28.0",
35
+ "bpmnlint-plugin-camunda-compat": "^2.29.0",
36
36
  "bpmnlint-utils": "^1.0.2",
37
37
  "camunda-bpmn-moddle": "^7.0.1",
38
38
  "clsx": "^2.0.0",
@@ -45,7 +45,7 @@
45
45
  "devDependencies": {
46
46
  "bpmn-js": "^17.11.1",
47
47
  "bpmn-js-element-templates": "^2.2.1",
48
- "bpmn-js-properties-panel": "^5.27.0",
48
+ "bpmn-js-properties-panel": "^5.28.0",
49
49
  "camunda-bpmn-js-behaviors": "^1.7.1",
50
50
  "chai": "^4.5.0",
51
51
  "cross-env": "^7.0.3",