camunda / bpmnlint-plugin-camunda-compat

A bpmnlint plug-in for Camunda BPMN compatibility.
MIT License
0 stars 2 forks source link

Disallow dummy/static conditions on outgoing sequence flows from OR/XOR gateways #152

Open nikku opened 7 months ago

nikku commented 7 months ago

Originally reported by @till-stadtler in https://github.com/bpmn-io/bpmnlint/issues/120.

The rule should detect the following modeling patterns

Conditions on outgoing sequence flows should always contain at least one process variable. If these conditions do not contain any process variable (dummy condition), they always evaluate to the same value.

If this value is false, the outgoing sequence flow will never be taken. This should be highlighted.

If this value is true:

If the dummy condition evaluates to false, this rule highlights that a certain path can never be taken. If the dummy condition evaluates to true, this rule helps to avoid an incident arising or suggests a helpful refactoring.

Without the rule, BPMN models will continue to include dummy conditions on sequence flows behind OR/XOR gateways.

How does the rule improve the BPMN diagram?

Without the rule, BPMN models will continue to include dummy conditions on sequence flows behind OR/XOR gateways.

Rule Details