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

Samuli Saarinen (JIRA) jira-events at lists.jboss.org
Tue Nov 9 01:15:01 EST 2010


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

Samuli Saarinen updated JBRULES-2779:
-------------------------------------

    Attachment: event-issue.zip


Maven project containing tests to reproduce the issue

>  Declaring events separately from rules breaks expires
> ------------------------------------------------------
>
>                 Key: JBRULES-2779
>                 URL: https://jira.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: Mark Proctor
>         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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list