]
Toshiya Kobayashi updated DROOLS-3080:
--------------------------------------
Git Pull Request:
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}