Definition ID different for one process in deployment


#1

Hi,

I expect the Definition ID to be in the form of {key}:{version}:{id}, which is true for all processes I deployed so far. I now deployed a BPMN file containing four processes in total, where 3 of the processes have a Definition ID in the expected form. One process, however, only has a GUID as ID. See screenshots for reference.

This does not seem to be a big issue, but my software expects the above schema so it has a pretty nasty bug at the moment with all process instances of the “erroneous” process.

Why is it different? What can I do to ensure it to be always the same?

Thanks in advance,
Matt


#2

Via https://docs.camunda.org/manual/7.11/user-guide/process-engine/process-versioning/#key-vs-id-of-a-process-definition

  • Id: The id is the database primary key and an artificial key normally combined out of the key, the version and a generated id (note that the ID may be shortened to fit into the database column, so there is no guarantee that the id is built this way).

Don’t rely on an id being anything else than a unique identifier.

Cheers,
Thorben