Naming Conventions: Technical Ids, Prefix vs Suffix

Hi everyone,

I am new to Camunda and I am trying to follow common naming conventions for technical ids. The Camunda documentation suggests to use prefixes for the elements, e.g. “StartEvent_NewTweetWritten”. On the same page it also references the modeler plugin that uses a different naming convention with suffixes, e.g. “NewTweetWrittenStartEvent”. Is the prefix form more preferable in general?

There’s only really one rule here is that you should pick one option and be consistent.
The most common place you’ll see these id’s are in error stack traces so make them understandable from the perspective of someone who’s likely trying to solve a problem. If your naming convention is consistent across all models, this will make it really easy.

It’s also important to consider that in bpmn you may very well have the same element type with the same name in one process. There could be a “SendTask_SendEmail” occuring multiple times, so make sure you deal with these cases as well, since they much be unique.

1 Like

Thank you for your insight!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.