cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel simulation

gromar
Champ in-the-making
Champ in-the-making
I would like to run several process engines in parallel (e.g. several threads in one JVM).

Rationale: Process simulation (http://gro-mar.github.io/activiti-crystalball/) needs execute several simulation runs. Runs can be executed in parallel to increase performance.

Questions:
Is activiti ready for this kind of usage?
What needs to be changed to achieve it?

I can see one obstacle:
org.activiti.engine.impl.util.ClockUtil has to be thread local in this case. (each thread can live in different simulation time)

Thank you for answer.
1 REPLY 1

trademak
Star Contributor
Star Contributor
Yes that should be no problem. Make sure that you don't enable the job executor on every process engine, since they will be competing a lot then to get jobs. I'm not aware of any changes you need to make for this. They only need to have a separate name for each of the process engine instances.

Best regards,