Penstock

Guide / Every rule

cancel listener on an element that cannot be cancelled

The check compat/cancel-execution-listener, in the group Engine compatibility.

Error

Why it matters

A cancel execution listener runs when an element is terminated, which only some elements can be, so on the others it never fires.

How to fix it

Use the listener on an element that supports it, or give it another event type.

Where you see it

The Problems tab lists it under Engine, the editor marks the element on the canvas, and penstock check reports it as compat/cancel-execution-listener. It checks the diagram against the engine and the version it is written for: the version in the file's modeler:executionPlatformVersion, or the newest one when the file has none. Operaton and CIB seven are checked as Camunda 7. This check is free.

To turn it off, set camunda-compat/cancel-execution-listener or compat/cancel-execution-listener to off in your .bpmnlintrc. See Validation.

Rule details

Idcompat/cancel-execution-listener
GroupEngine compatibility
LevelError: the diagram or the process is wrong

Read more: Validation. All rules: Every rule.