]
Geoffrey De Smet updated JBRULES-2779:
--------------------------------------
Fix Version/s: 5.2.0.CR2
(was: 5.2.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.2.0.CR2
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: