use of org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml in project camunda-bpm-platform by camunda.
the class StartJcaExecutorServiceStep method performOperationStep.
public void performOperationStep(DeploymentOperation operationContext) {
BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML);
checkConfiguration(bpmPlatformXml.getJobExecutor());
final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
serviceContainer.startService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_EXECUTOR, new JcaExecutorServiceDelegate(executorService));
}
use of org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml in project camunda-bpm-platform by camunda.
the class StartManagedThreadPoolStep method getJobExecutorXml.
private JobExecutorXml getJobExecutorXml(DeploymentOperation operationContext) {
BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML);
JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor();
return jobExecutorXml;
}
use of org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml in project camunda-bpm-platform by camunda.
the class StartJobExecutorStep method getJobExecutorXml.
private JobExecutorXml getJobExecutorXml(DeploymentOperation operationContext) {
BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML);
JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor();
return jobExecutorXml;
}
use of org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml in project camunda-bpm-platform by camunda.
the class AbstractParseBpmPlatformXmlStep method performOperationStep.
public void performOperationStep(DeploymentOperation operationContext) {
URL bpmPlatformXmlSource = getBpmPlatformXmlStream(operationContext);
ensureNotNull("Unable to find bpm-platform.xml. This file is necessary for deploying the camunda BPM platform", "bpmPlatformXmlSource", bpmPlatformXmlSource);
// parse the bpm platform xml
BpmPlatformXml bpmPlatformXml = new BpmPlatformXmlParser().createParse().sourceUrl(bpmPlatformXmlSource).execute().getBpmPlatformXml();
// attach to operation context
operationContext.addAttachment(Attachments.BPM_PLATFORM_XML, bpmPlatformXml);
}
use of org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml in project camunda-bpm-platform by camunda.
the class BpmPlatformXmlParserTest method testParseBpmPlatformXmlNoEngine.
public void testParseBpmPlatformXmlNoEngine() {
BpmPlatformXml bpmPlatformXml = parser.createParse().sourceUrl(getStreamUrl("bpmplatform_xml_no_engine.xml")).execute().getBpmPlatformXml();
assertNotNull(bpmPlatformXml);
assertNotNull(bpmPlatformXml.getJobExecutor());
assertEquals(0, bpmPlatformXml.getProcessEngines().size());
JobExecutorXml jobExecutorXml = bpmPlatformXml.getJobExecutor();
assertEquals(1, jobExecutorXml.getJobAcquisitions().size());
JobAcquisitionXml jobAcquisitionXml = jobExecutorXml.getJobAcquisitions().get(0);
assertEquals("default", jobAcquisitionXml.getName());
assertEquals("org.camunda.bpm.engine.impl.jobexecutor.DefaultJobExecutor", jobAcquisitionXml.getJobExecutorClassName());
assertEquals(2, jobAcquisitionXml.getProperties().size());
}
Aggregations