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

            if (acquireJobsRunnable is SequentialJobAcquisitionRunnable)
            {
                var context = ((SequentialJobAcquisitionRunnable)acquireJobsRunnable).AcquisitionContext;
                context.SubmitRejectedBatch(processEngine.Name, jobIds);
            }
            else
            {
                jobExecutor.GetExecuteJobsRunnable(jobIds, processEngine).Run(null);
            }
        }
示例#2
0
 public virtual void JobsRejected(IList <string> jobIds, ProcessEngineImpl processEngine, JobExecutor jobExecutor)
 {
     jobExecutor.GetExecuteJobsRunnable(jobIds, processEngine).Run(null);
 }