コード例 #1
0
            public override ProcessEngineConfiguration configureEngine(ProcessEngineConfigurationImpl configuration)
            {
                outerInstance.jobExecutor = new ControllableJobExecutor(true);
                outerInstance.jobExecutor.MaxJobsPerAcquisition = 1;
                outerInstance.jobExecutor.WaitTimeInMillis      = BASE_IDLE_WAIT_TIME;
                outerInstance.jobExecutor.MaxWait = MAX_IDLE_WAIT_TIME;
                outerInstance.acquisitionThread   = outerInstance.jobExecutor.AcquisitionThreadControl;

                return(configuration.setJobExecutor(outerInstance.jobExecutor));
            }
コード例 #2
0
 public override ProcessEngineConfiguration configureEngine(ProcessEngineConfigurationImpl configuration)
 {
     return(configuration.setJobExecutor(new ControllableJobExecutor()));
 }