AnsweredAssumed Answered

Is it possible to configure JobExecutor?

Question asked by blezek on Dec 27, 2011
Latest reply on Dec 29, 2011 by ronald.van.kuijk
Before I go off and implement some crazy thing, is it possible to configure the JobExecutor?  Looking through the JavaDocs it appears that you can only turn it on and off, but not change things like ThreadPool size, etc.

In particular, we would like to increase the max number of threads from 10 in anticipation of a heavy load on Activiti.

I have tried the hint outlined here, and it seems to work:

((ProcessEngineImpl) engine).getProcessEngineConfiguration().getJobExecutor().setMaxPoolSize(threads);
((ProcessEngineImpl) engine).getProcessEngineConfiguration().getJobExecutor().setQueueSize(queueSize);
((ProcessEngineImpl) engine).getProcessEngineConfiguration().getJobExecutor().start();

but I would prefer to do this more cleanly.