A timer should accomplish this. If the event disappears for some other reason, this activation is cancelled, too.<br><br>rule kill<br>timer( 20s )<br>when<br>    $e:Event(connectionEventType == ConnectionEventType.CLOSE)<br>
then<br>   retract( $e );<br>end <br><br>-W<br><br><br><div class="gmail_quote">On 3 October 2012 19:59, gboro54 <span dir="ltr">&lt;<a href="mailto:gboro54@gmail.com" target="_blank">gboro54@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Based on testing expiring an event does no remove it from working memory.<br>
What is the best way to manage working memory in the case that after a<br>
period of X seconds you want the event removed? Would you simply write a<br>
rule that would do a retract after a certain window i.e<br>
<br>
<br>
rule &quot;Closed Connection Occured&quot;<br>
        when<br>
                $e:Event(connectionEventType == ConnectionEventType.CLOSE this after [20s]<br>
this)<br>
        then<br>
                retract($e);<br>
end<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/expires-tp4020117.html" target="_blank">http://drools.46999.n3.nabble.com/expires-tp4020117.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br>