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