Hi Cristian,
You have to include a dependency in your project,
<dependency>
<groupId>com.fasterxml.uuid</groupId>
<artifactId>java-uuid-generator</artifactId>
<version>3.1.2</version>
</dependency>
and then configure the engine to use it like:
new StandaloneProcessEngineConfiguration().setIdGenerator(new
org.camunda.bpm.engine.impl.persistence.StrongUuidGenerator());
The UUID generator is a optional transitive dependency (maven:
provided scope), which is not propagated when including the engine.
Hint:
We recommend to import the camunda-bom so you do not have to be
worried about correct versions of optional transitive dependencies.
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.2.0</version>
</dependency>
To configure the JobExecutor programmatically , you can easily do:
DefaultJobExecutor jobExecutor = new
DefaultJobExecutor();
jobExecutor.setCorePoolSize(10);
jobExecutor.setMaxPoolSize(100);
jobExecutor.setQueueSize(10);
standaloneProcessEngineConfiguration.setJobExecutor(jobExecutor);
Cheers,
Christian