示例#1
0
        public virtual void jobsRejected(IList <string> jobIds, ProcessEngineImpl processEngine, JobExecutor jobExecutor)
        {
            AcquireJobsRunnable acquireJobsRunnable = jobExecutor.AcquireJobsRunnable;

            if (acquireJobsRunnable is SequentialJobAcquisitionRunnable)
            {
                JobAcquisitionContext context = ((SequentialJobAcquisitionRunnable)acquireJobsRunnable).AcquisitionContext;
                context.submitRejectedBatch(processEngine.Name, jobIds);
            }
            else
            {
                jobExecutor.getExecuteJobsRunnable(jobIds, processEngine).run();
            }
        }
示例#2
0
 protected internal virtual void ensureCleanup()
 {
     acquireJobsCmdFactory = null;
     acquireJobsRunnable   = null;
 }
示例#3
0
 protected internal virtual void ensureInitialization()
 {
     acquireJobsCmdFactory = new DefaultAcquireJobsCommandFactory(this);
     acquireJobsRunnable   = new SequentialJobAcquisitionRunnable(this);
 }