Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-3080

SpreadsheetCompiler generates wrong LHS order

    XMLWordPrintable

Details

    Description

      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.

      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
      
      

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: