Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 7.4.1.GA, 7.6.0.GA
    • Fix Version/s: 7.7.1.GA
    • Component/s: BRE
    • Labels:
    • Target Release:
    • Fix Build:
      CR1
    • Story Points:
      8
    • Affects:
      Release Notes
    • Sprint:
      2020 Week 10-12 (from Mar 2), 2020 Week 16-18 (from Apr 13)
    • QE Test Coverage:
      +

      Description

      Alpha node based rules evaluated for expired events are not all executed during the inference cycle.

      With the following rules:

       declare DummyEvent
           @role( event )
           @timestamp( eventTimestamp )
           @expires( 1s )
       end
       rule R1
       when
           $evt : DummyEvent()
       then
       end
       rule R2
       when
          $evt : ApplicationEvent()
       then 
       end
      

      and this code to execute:

          public interface ApplicationEvent { }
          public static class DummyEvent implements ApplicationEvent {...}
      
          /* .... */
      
              final KieSession kieSession = kieBase.newKieSession( sessionConfig, null );
      
              PseudoClockScheduler clock = kieSession.getSessionClock();
              final long currentTime = clock.getCurrentTime();
              clock.advanceTime(10, TimeUnit.SECONDS);
      
              kieSession.insert(new DummyEvent(10, currentTime));
      
              kieSession.fireAllRules()
      

      then only the R1 rule is executed, not R2.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  rhn-support-mpessanh Marcell Pessanha Cruz
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: