bpmn-io / bpmnlint

Validate BPMN diagrams based on configurable lint rules.
MIT License
123 stars 36 forks source link

False positive "unused global" warning message on `Receive Task` and `Send Task` #139

Closed kddsultan closed 5 days ago

kddsultan commented 1 month ago

Describe the Bug

Even if the message is defined and used in Receive Task, the linter gives a false warning like Message_xxxxxx warning Element is unused global

Steps to Reproduce

  1. Create a Camunda 7 BPMN diagram in Modeller (version used 5.26.0)
  2. Add a Receive Task and configure Message property for this task
  3. Run the bpmnlinter against the BPMN file (version used 10.3.0)
  4. See the message Message_xxxxxx warning Element is unused global

Expected Behavior

There should be no warning as the Message is used correctly

Environment

barmac commented 3 weeks ago

Thanks for reporting. I can reproduce this issue, and created a branch which includes a test case update: https://github.com/bpmn-io/bpmnlint/tree/139-check-message-tasks-in-global

We are happy to accept community PRs. If you want to provide a fix, feel free to reuse the branch, and: