[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2779) Declaring events separately from rules breaks expires

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Sun Sep 25 04:04:33 EDT 2011


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

Geoffrey De Smet updated JBRULES-2779:
--------------------------------------

    Fix Version/s: 5.3.0.Final
                       (was: 5.3.0.CR1)


>  Declaring events separately from rules breaks expires
> ------------------------------------------------------
>
>                 Key: JBRULES-2779
>                 URL: https://issues.jboss.org/browse/JBRULES-2779
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Samuli Saarinen
>            Assignee: Edson Tirelli
>             Fix For: 5.3.0.Final
>
>         Attachments: event-issue.zip
>
>
> I have the following situation with Drools 5.1.1: 2 drl files where one 
> contains an event declaration:
> declare Event1
> 	@role(event)
> 	@expires(1s)
> end
> and other has a simple rule:
> rule "Evt1"
> 	when
> 		e: Event1(value == 10)
> 	then
> 		System.out.println(e);
> end
> And I have the following test which fails:
> ses.insert(new Event1(1));
> ses.fireAllRules();
> clock.advanceTime(2, TimeUnit.SECONDS);
> ses.fireAllRules();
> assertEquals(ses.getFactCount(), 0L);
> The same test passes if the rule and event declaration are on the same 
> drl file.
> More on the issue here: 
> http://lists.jboss.org/pipermail/rules-users/2010-November/017172.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list