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

Named Consequence: compilation error if used after 'not' pattern

XMLWordPrintable

      If the label of a named consequence is used right after a 'not' pattern, a compilation error is raised.
      For example:

      rule R1 when
      $a: Cheese ( type == "stilton" )
      not Cheese ( type == "brie" )
      do[t1]
      b: Cheese ( type == "cheddar" )
      then
      results.add( $b.getType() );
      then[t1]
      results.add( $a.getType() );
      end

              mfusco@redhat.com Mario Fusco
              esteban.aliverti@gmail.com Esteban Aliverti (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: