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

SpreadsheetCompiler generates wrong LHS order

XMLWordPrintable

      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
      
      

        1. LhsOrder.xls
          13 kB
          Toshiya Kobayashi

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

                Created:
                Updated:
                Resolved: