Configure the DMN engine

The configuration of the DMN engine is a part of the process engine configuration. It depends on whether you use an application managed or a shared, container managed process engine. Please refer to the Process Engine Bootstrapping for details.

This section shows how to configure the DMN engine:

In the examples the default expression language of the input expressions is set to groovy. A list of all possible configurations can be found in the DMN Engine Configuration section.

Configure the DMN Engine using Java API

First, you need to create a ProcessEngineConfiguration object for the process engine and a DmnEngineConfiguration object for the DMN engine. Now you can configure the DMN engine using the DmnEngineConfiguration object. When you are done, set the object on the ProcessEngineConfiguration and call buildProcessEngine() to create the process engine.

// create the process engine configuration
ProcessEngineConfigurationImpl processEngineConfiguration = // ...
// create the DMN engine configuration    
DefaultDmnEngineConfiguration dmnEngineConfiguration = (DefaultDmnEngineConfiguration) 

// configure the DMN engine ...
// e.g. set the default expression language for input expressions to `groovy`

// set the DMN engine configuration on the process engine configuration

// build the process engine which includes the DMN engine

Configure the DMN Engine using Spring XML

Follow the instructions to create a base camunda.cfg.xml XML configuration for the process engine.

Add a new configuration bean of class org.camunda.bpm.dmn.engine.impl.DefaultDmnEngineConfiguration. Configure the DMN engine using the bean and set it as dmnEngineConfiguration property on the processEngineConfiguration bean.

<beans xmlns="" 

  <bean id="processEngineConfiguration" 
    <property name="dmnEngineConfiguration">
      <bean class="org.camunda.bpm.dmn.engine.impl.DefaultDmnEngineConfiguration">
        <!-- configure the DMN engine ... --> 
        <!-- e.g. set the default expression language for input expressions to `groovy` -->
        <property name="defaultInputExpressionExpressionLanguage" value="groovy" />

On this Page: