<meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  
  
    <div class="moz-cite-prefix">Hello.<br>
      Indeed, I have tested with the @expires and the objects are
      discarded in this case. What I had understood in the documentation
      is precisely the other way that the engine is expected to control
      the events expiration : "Inferred Expiration" (8.8.2), when no
      temporal constraint involves the objects, they are discarded.<br>
      This seems the best way to be sure to eliminate as soon as
      possible all the useless objects, whatever their life time. This
      is particularly important with flows of thousands of events per
      second.<br>
      Perhaps I don't understand this well... Another idea or advice ?<br>
      Thanks for your help.<br>
      Regards.<br>
      <pre class="moz-signature" cols="72">Ephemeris Lappis</pre>
      Le 27/08/2014 15:30, marianbuenosayres [via Drools] a écrit :<br>
    </div>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:1409146236962-4030725.post@n3.nabble.com"
      type="cite"> 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:
      <br>
      <br>
      declare Notification
      <br>
         @role( event )
      <br>
         @expires ( 1h45m )
      <br>
      end
      <br>
      <br>
      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:
      <br>
      <br>
      <a moz-do-not-send="true"
href="http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single/#d0e10478"
        target="_top" rel="nofollow" link="external">http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single/#d0e10478</a><br>
      <br>
      Cheers, <br>
      <br>
      <hr color="#cccccc" noshade="noshade" size="1">
      <div style="color:#444; font: 12px
        tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold">If you reply to this email, your
          message will be added to the discussion below:</div>
        <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Drools-Fusion-CEP-event-life-cycle-tp4030471p4030725.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/Drools-Fusion-CEP-event-life-cycle-tp4030471p4030725.html</a>
      </div>
      <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        To unsubscribe from Drools Fusion (CEP) &amp; event life cycle,
        <a moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
          here</a>.<br>
        <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
    </blockquote>
    <br>
  



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Fusion-CEP-event-life-cycle-tp4030471p4030726.html">Re: Drools Fusion (CEP) &amp; event life cycle</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>