Reputation: 7
I need to extract the contents of a decision table in a readable/tabular
format from the IBM ODM Decision Center Business Console using Java and ODM APIs provided.
This has to be an automated process and hence I cannot use the existing Import/Export
feature provided by ODM.
Does anyone have any sample code or have implemented such a requirement?
Version: ODM 8.10.1
Upvotes: 0
Views: 1005
Reputation: 271
if you synchronise your Rule Designer rules with Decision Center, you can use REST API to extract your Decision Table as an excel file from Decision Center.
https://www.ibm.com/docs/en/odm/8.10?topic=api-rest
Hope this helps, Emmanuel
Upvotes: 0
Reputation: 26
Step 1: Query the decision center for the decision table (see here for instructions)
Step 2:
if (rule.getType().equals("brm.DecisionTable")) {
IlrDecisionTable dTable = (IlrDecisionTable) rule;
IlrDTController controller = IlrSessionHelper.getDTController(session, dTable, new Locale(dTable.getLocale()));
String tableHtml = IlrDTHelper.getHTMLTable(controller, false, false);//getHTMLTable(IlrDTController controller, boolean showEmptyRow, boolean includeCSS)
...
}
Upvotes: 0