AnsweredAssumed Answered

Async Executor is not used during process start

Question asked by anilmann on Dec 10, 2016
Latest reply on Dec 10, 2016 by anilmann

Hi

 

I was trying to the effect of shutdown of async executor and then triggered a process. As per my understanding, if the configuration is for AsyncExecutorEnabled set to true and AsyncExecutorActivate set to true and shutdown Async executor service, then there will be an entry to start the process, however execution will not proceed as async executor is not active.

 

I found that it gets triggered and execution starts. I am not sure if this is the bug as known behavior.

 

Below is the sample code:
{code:java}

ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
                                              .setAsyncExecutorEnabled(true)
                                              .setAsyncExecutorActivate(true)
                                              .setCreateDiagramOnDeploy(true)
                                              .setJobExecutorActivate(false)
                                              .buildProcessEngine();

engine.getProcessEngineConfiguration()
              .getAsyncExecutor()
              .shutdown();

{code}

Outcomes