public void setActivateJobExecutor(boolean activateJobExecutor) { this.activateJobExecutor = activateJobExecutor; if (isActive) { log.info("Process engine configuration 'activateJobExecutor' set to " + activateJobExecutor); JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor(); if (activateJobExecutor && !jobExecutor.isActive()) { jobExecutor.start(); } else if (!activateJobExecutor && jobExecutor.isActive()) { jobExecutor.shutdown(); } } }
protected void closeProcessEngine() { ProcessEngines.unregister(activitiProcessEngine); JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor(); if (jobExecutor != null && jobExecutor.isActive()) { jobExecutor.shutdown(); } }