[jboss-jira] [JBoss JIRA] (DROOLS-3080) SpreadsheetCompiler generates wrong LHS order
Mario Fusco (Jira)
issues at jboss.org
Fri Oct 5 11:46:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco updated DROOLS-3080:
--------------------------------
Sprint: 2018 Week 39-41
> SpreadsheetCompiler generates wrong LHS order
> ---------------------------------------------
>
> Key: DROOLS-3080
> URL: https://issues.jboss.org/browse/DROOLS-3080
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.12.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Mario Fusco
> Priority: Major
> Labels: support
> Attachments: LhsOrder.xls
>
>
> When a Spreadsheet (xls) has CONDITION columns like:
> - The first column doesn't have Fact (e.g. accumulate(...))
> - The second column has Fact (e.g. $p:Person(...))
> (See attached LhsOrder.xls)
> , SpreadsheetCompiler generates a DRL with inverse order in LHS.
> {noformat}
> rule "LhsOrder_11"
> when
> $p:Person(name == "John", age == $max)
> accumulate(Person(name == "John", $a : age); $max:max($a))
> then
> System.out.println("hello, " + $p.getName());
> end
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list