Id Generation

Hello,
I have 2 processes, process A and process B. For those 2 processes, I want to generate process instance ids as follows : for process A → A-1, A-2, A-3… and for process B → B-1, B-2, B-3…

What would be the ways to achieve this? Can you please let me know.

Please use the business Key to set the id’s as per the process . How are you initiating the process . If through rest API you can use API to pass it .

That helps. I am using rest/engine/default/process-definition/key/ProcessA/start api to start. But is there any configuration in Camunda to enable creation of ids in such a way or I have to create my own database sequence or logic. If yes any suggestions on how to go about implementing the same.

I dont think there is anything out of the box in Camunda .

If you able to develop and register custom engine plugin you may take a look at section From within the Process Instance in this article: https://blog.camunda.com/post/2018/10/business-key/