Search in sources :

Example 1 with Deployer

use of org.camunda.bpm.engine.impl.persistence.deploy.Deployer 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 Deployer

use of org.camunda.bpm.engine.impl.persistence.deploy.Deployer in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method initDeployers.

// deployers ////////////////////////////////////////////////////////////////
protected void initDeployers() {
    if (this.deployers == null) {
        this.deployers = new ArrayList<Deployer>();
        if (customPreDeployers != null) {
            this.deployers.addAll(customPreDeployers);
        }
        this.deployers.addAll(getDefaultDeployers());
        if (customPostDeployers != null) {
            this.deployers.addAll(customPostDeployers);
        }
    }
    if (deploymentCache == null) {
        List<Deployer> deployers = new ArrayList<Deployer>();
        if (customPreDeployers != null) {
            deployers.addAll(customPreDeployers);
        }
        deployers.addAll(getDefaultDeployers());
        if (customPostDeployers != null) {
            deployers.addAll(customPostDeployers);
        }
        initCacheFactory();
        deploymentCache = new DeploymentCache(cacheFactory, cacheCapacity);
        deploymentCache.setDeployers(deployers);
    }
}
Also used : ArrayList(java.util.ArrayList) DeploymentCache(org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache) 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)

Aggregations

ArrayList (java.util.ArrayList)2 BpmnDeployer (org.camunda.bpm.engine.impl.bpmn.deployer.BpmnDeployer)2 CmmnDeployer (org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer)2 DecisionDefinitionDeployer (org.camunda.bpm.engine.impl.dmn.deployer.DecisionDefinitionDeployer)2 DecisionRequirementsDefinitionDeployer (org.camunda.bpm.engine.impl.dmn.deployer.DecisionRequirementsDefinitionDeployer)2 Deployer (org.camunda.bpm.engine.impl.persistence.deploy.Deployer)2 DeploymentCache (org.camunda.bpm.engine.impl.persistence.deploy.cache.DeploymentCache)1