<div><br></div>   Drools also use the 13 temporal operators as &quot;hints&quot;, so if you have a rule:<div><br></div><div>$a : A()</div><div>$b : B( this after[0,3m] $a )</div><div><br></div><div>   Drools will know that A&#39;s must be held in memory for 3 minutes while B&#39;s will expire immediately. Drools will calculate all possible expiration offsets based on all used temporal operators.</div>
<div><br></div><div>   In case no expiration offset can be calculated for a given event (i.e., no temporal operator was used, no sliding window, no @expires policy, resulting in expiration offset to be infinity), the event is help in memory until explicitly retracted.</div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2010/8/23 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
  Hi,<br>
<br>
I&#39;m thinking about something. Maybe anyone can tell me.<br>
<br>
The Stream Processing Mode of Drools Fusion provides automatic lifecycle<br>
managment. For my understandings this is based on the sliding windows<br>
used inside the rule conditions, the @expires metadata and the @delay<br>
metadata. Am I right so far?<br>
My questions is now: How are Events handled if non of the things listed<br>
above are used?<br>
<br>
Let&#39;s say I&#39;ve got rules just using the temporal reasoning operators<br>
inside the rule conditions - no sliding windows at all. I&#39;m also not<br>
using any of the @expires and @delay metadata. Is it correct than that:<br>
  - Drools matches the event coming in and the events existing in the<br>
KnowledgeBase and eventually activates a rule. And after fireAllRules()<br>
is called the resulting actions are performed and all Events are<br>
retracted by the automatic lifecycle managment,  because there are no<br>
hints (like a sliding window) that events will be needed again. (So that<br>
the knowledge base would be empty again?)<br>
<br>
Thanks for any explanations. :)<br>
Tina<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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>