[jboss-jira] [JBoss JIRA] (DROOLS-3080) SpreadsheetCompiler generates wrong LHS order

Toshiya Kobayashi (Jira) issues at jboss.org
Fri Oct 5 03:49:00 EDT 2018


Toshiya Kobayashi created DROOLS-3080:
-----------------------------------------

             Summary: 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


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