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

Property reactivity issue with Named Consequence

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 7.65.0.Final
    • core engine
    • None
    • NEW
    • NEW

    Description

      When "if" construct is involved, property reactivity is not properly calculated. For example, the following rule results in an infinite loop even though 'oldPrice' is not used in LHS.

      rule R1 when
          $a: Cheese ( type == "stilton" )
          if ( price > 10 ) break[t1]
      then
          modify( $a ) { setOldPrice(10) };
      then[t1]
          modify( $a ) { setOldPrice(15) };
      end
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: