AnsweredAssumed Answered

activiti didn't check uniqueness of businessKey ?

Question asked by quaff on May 7, 2014
Latest reply on Jun 12, 2014 by ssun
http://activiti.org/javadocs/org/activiti/engine/RuntimeService.html#startProcessInstanceByKey(java.lang.String, java.lang.String, java.util.Map)
<blockcode>
The combination of processdefinitionKey-businessKey must be unique.
</blockcode>

I'm using activiti 5.15.1,I found I can start same processdefinitionKey-businessKey more than one times.

runtimeService.startProcessInstanceByKey("key","number");
runtimeService.startProcessInstanceByKey("key","number");
runtimeService.startProcessInstanceByKey("key","number");

I'm expecting throws exception and rollback transaction.

Outcomes