[rules-users] Drools Fusion (CEP) & event life cycle

marianbuenosayres marianbuenosayres at gmail.com
Wed Aug 27 09:30:36 EDT 2014


I think that if you want the automatic event lifecycle management to delete
your events, you first need to notify the engine when an event is old enough
to realise it should be removed. This has to be managed adding the @expires
annotation to the event declaration:

declare Notification
   @role( event )
   @expires ( 1h45m )
end

That will let the engine know it should remove the event from the working
memory (if no rule needs it) after an hour and 45 minutes. Please check the
doc about @expires in the following link:

http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single/#d0e10478
<http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single/#d0e10478>  

Cheers,



--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-CEP-event-life-cycle-tp4030471p4030725.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list