Esempio n. 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();
            }
        }
Esempio n. 2
0
 protected internal virtual void ensureCleanup()
 {
     acquireJobsCmdFactory = null;
     acquireJobsRunnable   = null;
 }
Esempio n. 3
0
 protected internal virtual void ensureInitialization()
 {
     acquireJobsCmdFactory = new DefaultAcquireJobsCommandFactory(this);
     acquireJobsRunnable   = new SequentialJobAcquisitionRunnable(this);
 }