[
https://issues.jboss.org/browse/JBRULES-2779?page=com.atlassian.jira.plug...
]
Toni Rikkola updated JBRULES-2779:
----------------------------------
Fix Version/s: 5.5.0.Beta1
(was: 5.4.0.Final)
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.5.0.Beta1
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, 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