Search in sources :

Example 1 with DefaultCmmnTransformFactory

use of org.camunda.bpm.engine.impl.cmmn.transformer.DefaultCmmnTransformFactory in project camunda-bpm-platform by camunda.

the class ProcessEngineConfigurationImpl method getCmmnDeployer.

protected CmmnDeployer getCmmnDeployer() {
    CmmnDeployer cmmnDeployer = new CmmnDeployer();
    cmmnDeployer.setIdGenerator(idGenerator);
    if (cmmnTransformFactory == null) {
        cmmnTransformFactory = new DefaultCmmnTransformFactory();
    }
    if (cmmnElementHandlerRegistry == null) {
        cmmnElementHandlerRegistry = new DefaultCmmnElementHandlerRegistry();
    }
    CmmnTransformer cmmnTransformer = new CmmnTransformer(expressionManager, cmmnElementHandlerRegistry, cmmnTransformFactory);
    if (customPreCmmnTransformListeners != null) {
        cmmnTransformer.getTransformListeners().addAll(customPreCmmnTransformListeners);
    }
    cmmnTransformer.getTransformListeners().addAll(getDefaultCmmnTransformListeners());
    if (customPostCmmnTransformListeners != null) {
        cmmnTransformer.getTransformListeners().addAll(customPostCmmnTransformListeners);
    }
    cmmnDeployer.setTransformer(cmmnTransformer);
    return cmmnDeployer;
}
Also used : DefaultCmmnTransformFactory(org.camunda.bpm.engine.impl.cmmn.transformer.DefaultCmmnTransformFactory) DefaultCmmnElementHandlerRegistry(org.camunda.bpm.engine.impl.cmmn.handler.DefaultCmmnElementHandlerRegistry) CmmnDeployer(org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer) CmmnTransformer(org.camunda.bpm.engine.impl.cmmn.transformer.CmmnTransformer)

Aggregations

CmmnDeployer (org.camunda.bpm.engine.impl.cmmn.deployer.CmmnDeployer)1 DefaultCmmnElementHandlerRegistry (org.camunda.bpm.engine.impl.cmmn.handler.DefaultCmmnElementHandlerRegistry)1 CmmnTransformer (org.camunda.bpm.engine.impl.cmmn.transformer.CmmnTransformer)1 DefaultCmmnTransformFactory (org.camunda.bpm.engine.impl.cmmn.transformer.DefaultCmmnTransformFactory)1