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:
in XOR gateways: this sequence flow will always be taken, and an incident might be thrown if another outgoing sequence flow evaluates to true as well
in OR gateways: in this case, the OR gateway should be replaced with the combination of a parallel gateway and another XOR/OR gateway to improve readability
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.
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
no-dummy-conditions
/static-expression
warn