Search in sources :

Example 1 with BpmPlatformXmlParser

use of org.camunda.bpm.container.impl.metadata.BpmPlatformXmlParser 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);
}
Also used : BpmPlatformXmlParser(org.camunda.bpm.container.impl.metadata.BpmPlatformXmlParser) BpmPlatformXml(org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml) URL(java.net.URL)

Example 2 with BpmPlatformXmlParser

use of org.camunda.bpm.container.impl.metadata.BpmPlatformXmlParser in project camunda-bpm-platform by camunda.

the class BpmPlatformXmlParserTest method setUp.

protected void setUp() throws Exception {
    parser = new BpmPlatformXmlParser();
    super.setUp();
}
Also used : BpmPlatformXmlParser(org.camunda.bpm.container.impl.metadata.BpmPlatformXmlParser)

Aggregations

BpmPlatformXmlParser (org.camunda.bpm.container.impl.metadata.BpmPlatformXmlParser)2 URL (java.net.URL)1 BpmPlatformXml (org.camunda.bpm.container.impl.metadata.spi.BpmPlatformXml)1