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)); }
public void performOperationStep(DeploymentOperation operationContext) { Map<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES); for (Entry<URL, ProcessesXml> processesXml : processesXmls.entrySet()) { for (ProcessArchiveXml processArchive : processesXml.getValue().getProcessArchives()) { // for each process archive add an individual operation step operationContext.addStep( new DeployProcessArchiveStep(processArchive, processesXml.getKey())); } } }