Hi All, I just want to ask is there a way to prevent same business key will not triggering same process definition.
e.g
First running will hit api and start process definition abcd
Business Key : “12345”
when there second running and want to start process definition abcd
with same business key : “12345”. It will rejected and will not create any process instance
is there a way to do that?
really appreciate your answer
@dimasrij Unique constraint for the business key is removed in the runtime and history tables since the release of Camunda Platform 7.0.
You can execute these scripts to set the business key constraint.
https://docs.camunda.org/manual/7.15/user-guide/process-engine/database/database-configuration/#business-key
Another approach would be adding execution listener of the start event of the process to check for the process definitions with the same business key.