Hi Comunity,
My dmn file will always have only one decison table.
I am using react application and need to show the decision table of dmn file directly instead of user going through DRD and clicking on icon shown for decision table.
Is there a way how can i achieve this ?
Regards, Ganesh
Hey Ganesh,
you can open and find the first decision table like this:
dmnJS.importXML(dmn, (err) => { if (err) { return console.log(err); } dmnJS.open(dmnJS.getViews().find( view => view.type === 'decisionTable' )) });
This will find a decision Table and open it after importing. It will fail if there is no decision table in the provided XML.
Hope this helps!