Flow not moving after decision task

Hi,

I’m trying to integrate the DMN Engine to the BPMN Engine so that I can integrate a decision table in a BPMN process. I have created the respective beans but as am executing the flow, it keeps stopping at the decision task- it doesn’t even trigger a hit to the DMN because the DMN Execution tables are empty.

I have written the below lines of code:

ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)
                ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("flowable.dmn.cfg.xml");
        processEngine = processEngineConfiguration.buildProcessEngine();




@Bean
public ProcessEngineFactoryBean processEngineFactoryBean() {
    SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();
    config.setDataSource(dataSource);
    config.setTransactionManager(transactionManager);
    config.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
    config.addConfigurator(new SpringDmnEngineConfigurator());

    ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();
    factoryBean.setProcessEngineConfiguration(config);
    return factoryBean;
}




 @Bean(name = "flowableDataSource")
    @ConfigurationProperties(prefix = "flowable.datasource")
    public DataSource secondaryDataSource() {
        return DataSourceBuilder.create().build();
    }

    @Bean(name = "flowableTransactionManager")
    public PlatformTransactionManager transactionManager() {
        DataSourceTransactionManager transactionManager = new DataSourceTransactionManager();
        transactionManager.setDataSource(secondaryDataSource());
        return transactionManager;
    }

Please let me know if you need any more information about the code

Hi,

I’m missing the part where you instantiate the DMN engine and make it available to the BPMN process engine.

Regards,

Yvo

This is my flowable.dmn.cfg.xml

<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd">
<property name="jdbcUrl" value="*********" />
<property name="jdbcDriver" value="****************" />
<property name="jdbcUsername" value="*******" />
<property name="jdbcPassword" value="************" />

<property name="databaseSchemaUpdate" value="true" />

<property name="configurators">
    <list>
        <ref bean="dmnEngineConfigurator"/>
    </list>
</property>