コード例 #1
0
 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();
     }
   }
 }
コード例 #2
0
 protected void closeProcessEngine() {
   ProcessEngines.unregister(activitiProcessEngine);
   JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();
   if (jobExecutor != null && jobExecutor.isActive()) {
     jobExecutor.shutdown();
   }
 }