-
Bug
-
Resolution: Done
-
Major
-
7.5.0.GA, 7.5.1.GA
The attached "test_functions.xlsx" spreadsheet which 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
Regards,
Oscar.
- is cloned by
-
DROOLS-4985 A Spreadsheet decision tables does not convert to a DRL file correctly when a Function is being used in the RuleTable constraints
- Closed