Search in sources :

Example 1 with BpmnDeployer

use of org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method getDefaultDeployers.

protected Collection<? extends Deployer> getDefaultDeployers() {
    List<Deployer> defaultDeployers = new ArrayList<Deployer>();
    BpmnDeployer bpmnDeployer = getBpmnDeployer();
    defaultDeployers.add(bpmnDeployer);
    if (isCmmnEnabled()) {
        CmmnDeployer cmmnDeployer = getCmmnDeployer();
        defaultDeployers.add(cmmnDeployer);
    }
    if (isDmnEnabled()) {
        DecisionRequirementsDefinitionDeployer decisionRequirementsDefinitionDeployer = getDecisionRequirementsDefinitionDeployer();
        DecisionDefinitionDeployer decisionDefinitionDeployer = getDecisionDefinitionDeployer();
        // the DecisionRequirementsDefinition cacheDeployer must be before the DecisionDefinitionDeployer
        defaultDeployers.add(decisionRequirementsDefinitionDeployer);
        defaultDeployers.add(decisionDefinitionDeployer);
    }
    return defaultDeployers;
}
Also used : BpmnDeployer(org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer) DecisionRequirementsDefinitionDeployer(org.camunda.bpm.engine.impl.dmn.deployer.DecisionRequirementsDefinitionDeployer) ArrayList(java.util.ArrayList) CmmnDeployer(org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer) DecisionDefinitionDeployer(org.camunda.bpm.engine.impl.dmn.deployer.DecisionDefinitionDeployer) Deployer(org.camunda.bpm.engine.impl.persistence.deploy.Deployer) CmmnDeployer(org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer) DecisionDefinitionDeployer(org.camunda.bpm.engine.impl.dmn.deployer.DecisionDefinitionDeployer) DecisionRequirementsDefinitionDeployer(org.camunda.bpm.engine.impl.dmn.deployer.DecisionRequirementsDefinitionDeployer) BpmnDeployer(org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer)

Example 2 with BpmnDeployer

use of org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer 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)2 ArrayList (java.util.ArrayList)1 BpmnParser (org.camunda.bpm.engine.impl.bpmn.parser.BpmnParser)1 CmmnDeployer (org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer)1 DecisionDefinitionDeployer (org.camunda.bpm.engine.impl.dmn.deployer.DecisionDefinitionDeployer)1 DecisionRequirementsDefinitionDeployer (org.camunda.bpm.engine.impl.dmn.deployer.DecisionRequirementsDefinitionDeployer)1 Deployer (org.camunda.bpm.engine.impl.persistence.deploy.Deployer)1