Duncan Doyle created DROOLS-984:
-----------------------------------
Summary: @expires( -1 ) should disable Event expiration
Key: DROOLS-984
URL:
https://issues.jboss.org/browse/DROOLS-984
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 6.3.0.Final
Environment: Mac OS X 10.11.1, Oracle Hotspot 1.7.0_79, Drools 6.4.0-SNAPSHOT
Reporter: Duncan Doyle
Assignee: Mario Fusco
Defining an event with @expires( -1 ) should disable event expiration. However, when
configuring my event like this:
{code}
declare SimpleEvent
@role( event )
@timestamp( logicalTimestamp )
@expires( -1 )
end
{code}
and having a rule like this:
{code}
rule "rule_1"
when
$s: SimpleEvent ()
not SimpleEvent (this != $s, this after[0, 30s] $s)
then
System.out.println("No event within 30 seconds of this event: " +
$s.getId());
end
{code}
the event is still expired and retracted from WM after 30 seconds (the expiration time
inferred from the temporal constraint in the rule).
Reproducer can be found here:
https://github.com/DuncanDoyle/drools-disable-expiration-issue
Run 'mvn clean test' to reproduce.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)