Hi Anup,
You can do it exactly in the same way as you would do it in Excel by listing the content of each row cell-by-cell from left to right. For example, in the project “DecisionExternalsRules” in “openrule.decisions” you may write:
externalRules.addRuleTable(
"DefineGreeting", //table name
"DecisionTableTemplate", //template name
new String[] { "Condition", "Then" }, // labels
new String[] { "Current Hour", "Result" }, // descriptions/variables
new String[][] { //rules
new String[] {"Within","(0..11]","Good Morning"},
new String[] {"Within","(11..17]","Good Afternoon"},
new String[] {"Within","(18..21]","Good Evening"},
new String[] {"Within","(21..24]","Good Night"}
}
);
Let us know if you still have any issues.
OpenRules Support
--
You received this message because you are subscribed to the Google Groups "OpenRules" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openrules+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.