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

Wrong BetaIndex with Or in executable-model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.47.0.Final
    • executable model
    • None
    • 2020 Week 52-03 (from Dec 21)
    • 2
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      When a pattern inside "or" has a constraint which compares to a property of a bind variable, LambdaConstraint.indexingDeclaration is wrongly replaced (during LogicTransformer.transform()) so results in a wrong rule execution.

      rule R 
      when
        $p : Person(name == "Mark") or
        ( $mark : Person(name == "Mark")
          and
          $p : Person(age == $mark.age) )
        $s: String(this == $p.name)
      then
        ...
      

              rhn-support-tkobayas Toshiya Kobayashi
              rhn-support-tkobayas Toshiya Kobayashi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: