bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
125 stars 37 forks source link

Disallow labels on sequence flows that are not outgoing from OR/XOR gateways #123

Open till-stadtler opened 10 months ago

till-stadtler commented 10 months ago

The rule should detect the following modeling patterns

Sequence flows that are not outgoing from OR/XOR gateways should not have labels. Labeling these sequence flows can lead to confusion. no-labels-on-standard-sequence-flows-1

Instead either use no label, because the following activity speaks for itself, or an intermediate none event: no-labels-on-standard-sequence-flows-2

How does the rule improve the BPMN diagram?

Instead of having confusing labels on sequence flows that are not outgoing from OR/XOR gateways, they are either removed or replaced with an intermediate none event.

In Camunda, intermediate none events can be used for business intelligence in Optimize.

Rule Details

What alternatives did you consider?

BPMN models continue to contain labels on sequence flows that are not outgoing from OR/XOR gateways.

nikku commented 10 months ago

I assume this does not apply to conditional labels, right?

image

till-stadtler commented 10 months ago

You are right! Labels should also be allowed on conditional sequence flows!

nikku commented 8 months ago

Will be addressed via https://github.com/bpmn-io/bpmnlint/pull/129 (some more work needed to wrap that one up, some day maybe).