[
https://jira.jboss.org/browse/JBRULES-2779?page=com.atlassian.jira.plugin...
]
Edson Tirelli reassigned JBRULES-2779:
--------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
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: Edson Tirelli
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