[jboss-jira] [JBoss JIRA] (JBRULES-2773) Rule delayed although temporal operator within not() refers to past events

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Wed Feb 1 05:26:30 EST 2012


     [ https://issues.jboss.org/browse/JBRULES-2773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet updated JBRULES-2773:
--------------------------------------

    Fix Version/s: 5.4.0.Beta3
                       (was: 5.4.0.Beta2)

    
> Rule delayed although temporal operator within not() refers to past events
> --------------------------------------------------------------------------
>
>                 Key: JBRULES-2773
>                 URL: https://issues.jboss.org/browse/JBRULES-2773
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>             Fix For: 5.4.0.Beta3
>
>
> The .drl:
> declare Leave
>   @role( event )
>   @timestamp( timestamp )
> end
> rule "XXX Leave not !="
> when
>     $leave: Leave()
>     not Leave( this != $leave )
> then
>     System.out.println( "XXX only one Leave - not !=" );
> end
> rule "YYY Leave not after"
> when
>     $leave: Leave()
>     not Leave( this before $leave )
> then
>     System.out.println( "YYY only one Leave - not before" );
> end
> A) The pseudo-clock is advanced according to the timestamp; then
> exactly one event Leave is inserted; then fireAllRules() is called.
> 1) Running in CLOUD mode, both rules fire.
> 2) But running in STREAM mode, ONLY rule XXX fires.
> B) Like A, but the session clock is advanced by (at least) 1ms
> prior to calling fireAllRules().
> 3) Either mode, both rules fire.
> I think that A2) is incorrect; why should passing another msec change the logic? Rule YYY matches by looking into the past, so the "rule activation delay"  described in 2.5.2.2. Negative Patterns in Stream Mode should not apply because the default parameter for before is [1ms,...].

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list