Search in sources :

Example 1 with BpmnParser

use of org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method getBpmnDeployer.

protected BpmnDeployer getBpmnDeployer() {
    BpmnDeployer bpmnDeployer = new BpmnDeployer();
    bpmnDeployer.setExpressionManager(expressionManager);
    bpmnDeployer.setIdGenerator(idGenerator);
    if (bpmnParseFactory == null) {
        bpmnParseFactory = new DefaultBpmnParseFactory();
    }
    BpmnParser bpmnParser = new BpmnParser(expressionManager, bpmnParseFactory);
    if (preParseListeners != null) {
        bpmnParser.getParseListeners().addAll(preParseListeners);
    }
    bpmnParser.getParseListeners().addAll(getDefaultBPMNParseListeners());
    if (postParseListeners != null) {
        bpmnParser.getParseListeners().addAll(postParseListeners);
    }
    bpmnDeployer.setBpmnParser(bpmnParser);
    return bpmnDeployer;
}
Also used : BpmnDeployer(org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer) BpmnParser(org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser)

Aggregations

BpmnDeployer (org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer)1 BpmnParser (org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser)1