[jboss-jira] [JBoss JIRA] (DROOLS-4985) A Spreadsheet decision tables does not convert to a DRL file correctly when a Function is being used in the RuleTable constraints
Toni Rikkola (Jira)
issues at jboss.org
Mon Jan 27 13:08:06 EST 2020
[ https://issues.redhat.com/browse/DROOLS-4985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Toni Rikkola moved RHDM-1211 to DROOLS-4985:
--------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-4985 (was: RHDM-1211)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: Guided Decision Table Editor
XLS Score Card Editor
(was: Decision Central)
Affects Version/s: (was: 7.5.0.GA)
(was: 7.5.1.GA)
QE Status: NEW
> A Spreadsheet decision tables does not convert to a DRL file correctly when a Function is being used in the RuleTable constraints
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-4985
> URL: https://issues.redhat.com/browse/DROOLS-4985
> Project: Drools
> Issue Type: Bug
> Components: Guided Decision Table Editor, XLS Score Card Editor
> Reporter: Oscar Molina
> Assignee: Toni Rikkola
> Priority: Major
> Labels: drools-tools, support
>
> 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
> {code}
> 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
> {code}
> Expected correct DRL rule
> {code}
> 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
> {code}
> Regards,
> Oscar.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list