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

ForceEagerActivationOption and "not()" LHS pattern does not invoke matchCreated listener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 7.0.0.Beta1
    • core engine
    • None
    • NEW
    • NEW

      Given the following rules

      rule ND
      when
          not ( Double() ) 
      then
          // do nothing. 
      end
      rule ND2
      salience 1
      when
          not ( Double() ) 
      then
          insert( new Double(0) ); 
      end
      

      and KieSession created with ForceEagerActivationOption.YES and a generic AgendaEventListener on fire all rules returns:

       created: 0 cancelled: 1 fired: 1
      

      hence incoherent as matchcreated .

      Expected: created=2, cancelled=1, fired=1.

      Reporting this as also I understand this eager option is used by jBPM.

              mmortari@redhat.com Matteo Mortari
              mmortari@redhat.com Matteo Mortari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: