camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.51k stars 484 forks source link

Do not allow messages with empty name #4341

Open strangelookingnerd opened 5 months ago

strangelookingnerd commented 5 months ago

Describe the bug

Currently it is possible to create bpmn:message (as well as escalation, errors...) with empty names. Since I can not imagine any scenario where a user would want / need a messsage without a name I'd argue that it should not be possible to create messages without a name.

Steps to reproduce

  1. Create new message and remove the name grafik
  2. End up with an empty message grafik

Expected behavior

It should not be possible to create message with an empty name, a validation error should appear if one deletes the name.

Environment

Camunda Modeler system information

Additional context

Related to #4339, #4343, #4344

nikku commented 5 months ago

This should be addressed via a lint rule. There is no good reason to have a message with an empty name.