include group and template names in error messages otherwise they are too unspecific for complex models
Problem/Motivation
After the following two issues
https://www.drupal.org/project/eca/issues/3275457
https://www.drupal.org/project/eca/issues/3275296 got fixed and i was able to access the test model with every template available again thanks to @jurgenhaas i've noticed another problem.
if you have a complex model, an unspecific error message like "enter a valid email address or use a token email address" or an error message about an "invalid regular expression" arent really helpful at pointing the user where to take action. it is more like searching a needle in a haystack if you have a model like the one i've linked
the user especially if not familiar with the model would have to open each and every startevent, task and or sequenceflow to actually find those two errors in question.
Steps to reproduce
- install a fresh drupal 9.4. install
- install and enable eca, bpmn_io, commerce, tamper, context_stack, entity_share, eca_entity_share, eca_tamper, group, group_action, state_machine, views_bulk_operations
- import the linked model
- access the model, edit it and save -> then you will see the errors
Proposed resolution
- one option might be to extend the error message by adding the name of the template and what type it is (startevent, task or sequenceflow)
- the second additional option (probably out of scope and impossible with bpmn at this point - perhaps a candidate for a feature suggestion upstream) might be to add a focus to the objects in question on the canvas or auto select them in the properties panel that the user is directly pointed to the fields causing the error - so there isnt a need to search and the user is enabled to directly update the fields causing the errors.
