[rules-users] @expires

gboro54 gboro54 at gmail.com
Wed Oct 3 13:59:36 EDT 2012


Based on testing expiring an event does no remove it from working memory.
What is the best way to manage working memory in the case that after a
period of X seconds you want the event removed? Would you simply write a
rule that would do a retract after a certain window i.e


rule "Closed Connection Occured"
	when
		$e:Event(connectionEventType == ConnectionEventType.CLOSE this after [20s]
this)
	then
		retract($e);
end



--
View this message in context: http://drools.46999.n3.nabble.com/expires-tp4020117.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list