-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not allow multiple messages with the same name #4339
Comments
This should be addressed via a lint rule. There is no good reason to have multiple messages with the same name. On the other hand, does it hurt? We go by the principle of "being forgiven", but also helpful. Hence our strategy is not to prevent you from duplicating, rather we allow you to fix the issue. |
It surely does not hurt but chances are very high it was not intended by the user and thus should be warned about. Adding a lint rule sounds like a reasonable solution. |
@strangelookingnerd Happy to take a contribution that validates this in |
A rule that verifies that global elements are properly used. Currently recognized global elements are: * `bpmn:Error` * `bpmn:Escalation` * `bpmn:Signal` * `bpmn:Message` For each of these elements proper usage implies: * element must have a name * element is used (referenced) from event definitions * there exists only a single element per type with a given name Related to camunda/camunda-modeler#4339
This is now available and validated as a bpmnlint rule, and can be plugged-in to the modeler via the Thanks @strangelookingnerd! |
Describe the bug
Currently it is possible to create multiple
bpmn:message
(as well as escalation, errors...) with identical names but different IDs.In the UI you can only select these message by the "global message reference" which is based on the name. For the user there is no way to distinguish them. Since I can not imagine any scenario where a user would want / need multiple messsage of the same name to be in place I'd argue that it should not be possible to create messages with identical names.
Steps to reproduce
MyMessage
Expected behavior
It should not be possible to create multiple messages with identical names.
Environment
Camunda Modeler system information
Additional context
Related to #4341, #4343, #4344
The text was updated successfully, but these errors were encountered: