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

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


     [ https://issues.jboss.org/browse/DROOLS-3080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Toshiya Kobayashi updated DROOLS-3080:
--------------------------------------
    Attachment: LhsOrder.xls


> 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