The problem is we can have sometimes hundreds of instances to start at the same time.
We didn’t find a way to start all theses instances without calling the API multiple times.
After a number of API calls Camunda is throwing some exceptions like :
Error querying database. Cause: org.apache.ibatis.transaction.TransactionException: Error configuring AutoCommit. Your driver may not support getAutoCommit() or setAutoCommit().
or
org.camunda.bpm.engine.rest.exception.RestException: Cannot instantiate process definition xxxxxxxxx:11:68a0f7a3-966e-11ea-92a3-ca1c9615904e: Process engine persistence exception
at org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl.startProcessInstance(ProcessDefinitionResourceImpl.java:125)
Is there any good practices / advices to execute a batch process instances creation ?
I am using MySQL, will update the configuration tomorrow if not like that. Do you have any advice for the multi start instances ? Or there is no other way to do it?
@Benjamin_Bellantonio, to start multiple instances i would recommend to model multi instance subprocess, and pass the list input which will loop through and start multiple instances.
To configure the multi-instance activity, refer the below post:
the best way to start as many processes as possible is to include as less logic into the process before it is saved to the database for the first time…
The easiest way to reach that goal is mark every process model with Asynchronous before on the start event.