Пример #1
0
        public override ThreadStart getExecuteJobsRunnable(IList <string> jobIds, ProcessEngineImpl processEngine)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate();
            RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.ExecutorService executorService = runtimeContainerDelegate.getExecutorService();
            ExecutorService executorService = runtimeContainerDelegate.ExecutorService;

            return(executorService.getExecuteJobsRunnable(jobIds, processEngine));
        }
Пример #2
0
        protected internal override void startExecutingJobs()
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate();
            RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate;

            // schedule job acquisition
            if (!runtimeContainerDelegate.ExecutorService.schedule(acquireJobsRunnable, true))
            {
                throw new ProcessEngineException("Could not schedule AcquireJobsRunnable for execution.");
            }
        }
Пример #3
0
        public override void executeJobs(IList <string> jobIds, ProcessEngineImpl processEngine)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate();
            RuntimeContainerDelegate runtimeContainerDelegate = RuntimeContainerDelegate;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.ExecutorService executorService = runtimeContainerDelegate.getExecutorService();
            ExecutorService executorService = runtimeContainerDelegate.ExecutorService;

            ThreadStart executeJobsRunnable = getExecuteJobsRunnable(jobIds, processEngine);

            // delegate job execution to runtime container
            if (!executorService.schedule(executeJobsRunnable, false))
            {
                logRejectedExecution(processEngine, jobIds.Count);
                rejectedJobsHandler.jobsRejected(jobIds, processEngine, this);
            }
        }
Пример #4
0
 public virtual void set(RuntimeContainerDelegate @delegate)
 {
     this.@delegate = @delegate;
 }