A Spreadsheet decision tables does not convert to a DRL file correctly when a Function is being used in the RuleTable constraints in RHDM
Issue
-
A spreadsheet is being used for creating a “Spreadsheet decision tables” asset. This spreadsheet contains a “Function” and has some rules. These rules use the “Function” in the constraints. When this XLSX Decision Table is converted to a “Guided Decision Table”, the constraints are missing the “Function” calls. Surprisingly if the “Function” call is used in a System.out.println statement, the generated DRL correctly contains it.
A wrongly generated DRL rule
rule "Row 3 Hello RuleTable" dialect "mvel" when $person : Person( gender == "Female" , married == true ) then $person.setHelloMsg( "Miss" ); System.out.println(hello($person.getName(), "Miss", "how are you doing")); end
Expected correct DRL rule
rule "Row 3 Hello RuleTable DRL" dialect "mvel" when $person : Person( gender == "Female" , married == true ) then $person.setHelloMsg( hello($person.getName(), "Miss", "how are you doing") ); System.out.println(hello($person.getName(), "Miss", "how are you doing")); end
Environment
- Red Hat Decision Manager (RHDM)
- 7.5.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.