camunda / camunda-modeler

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

Do not allow messages with empty name #4341

Open strangelookingnerd opened 1 month ago

strangelookingnerd commented 1 month 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 1 month ago

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