use of org.camunda.bpm.container.RuntimeContainerDelegate in project camunda-bpm-platform by camunda.
the class ManagedProcessEngineFactoryBean method getObject.
public ProcessEngine getObject() throws Exception {
ProcessEngine processEngine = super.getObject();
RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate();
runtimeContainerDelegate.registerProcessEngine(processEngine);
return processEngine;
}
use of org.camunda.bpm.container.RuntimeContainerDelegate in project camunda-bpm-platform by camunda.
the class RuntimeContainerJobExecutor method executeJobs.
public void executeJobs(List<String> jobIds, ProcessEngineImpl processEngine) {
final RuntimeContainerDelegate runtimeContainerDelegate = getRuntimeContainerDelegate();
final ExecutorService executorService = runtimeContainerDelegate.getExecutorService();
Runnable executeJobsRunnable = getExecuteJobsRunnable(jobIds, processEngine);
// delegate job execution to runtime container
if (!executorService.schedule(executeJobsRunnable, false)) {
logRejectedExecution(processEngine, jobIds.size());
rejectedJobsHandler.jobsRejected(jobIds, processEngine, this);
}
}
Aggregations