I have created Java code to read the JSON and deploy the DMN in flowable 6.6.0. I am able to see the DMN got deployed and execute the rule also. Also I am able to see the deployment in “Admin App” at the same time i don’t know how to view the decision table of the deployed DMN from “Admin App”.
Please let me know, is there any way to see the decision table and export as DMN?
String dmnName = “demo”;
DmnRepositoryService dmnRepositoryService =
new StandaloneDmnEngineConfiguration()
.setDataSource(flowableDataSource) .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE)
.setHistoryEnabled(true)
.buildDmnEngine()
.getDmnRepositoryService();
ObjectMapper objectMapper = new ObjectMapper();
JsonNode decisionTableNode = null;
decisionTableNode = objectMapper.readTree(dmnJson);
DmnDefinition dmnDefinition = new DmnJsonConverter().convertToDmn(decisionTableNode,"abcd", 1, new Date());
dmnRepositoryService
.createDeployment()
.name(dmnName)
.category(dmnName+"_category")
.addDmnModel(dmnName+".dmn", dmnDefinition)
.deploy();