On 14 October 2011 06:31, slyfox <span dir="ltr">&lt;<a href="mailto:bobby.richards@gmail.com">bobby.richards@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
thanks for the response, that makes a little more sense.  That is an issue<br>
because the whole idea of CEP is to process events as they happen.  My next<br>
step is adding camel support so that I can consume the amqp feed without<br>
manually inserting into the session.  I guess fireuntilhalt is my only<br>
option.  But what does fire until halt do, is it just a continuous loop or<br>
is is smart enough to only process events when they come in?<br></blockquote><div><br>There is one reasons for the thread running a Drools engine until halt <br>to become active: when a fact is inserted. After doing the work resulting<br>
from this, the thread falls back into suspension.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
so what would happen if the event is given an expiration of say 2 seconds?<br>
if you were calling fireallrules in anything over a 2 second interval you<br>
would miss a lot.<br></blockquote><div><br>An event that has expired any time before you fireAllRules is discarded<br>soon after this call is entered. What could you &quot;miss&quot; in the time between<br>the scheduled expiry and the actual removal?<br>
<br>Note that any application that expects to produce real-time reactions<br>is bound to fireUntilHalt.<br><br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I do not really see the benefit of fusion then, seems like its redundant?  I<br>
hope that I am missing something.<br></blockquote><div><br>There isn&#39;t really a &quot;Fusion&quot; thing. (Think of it as a marketing gag.)<br>The Drools Rule Engine is capable of dealing with facts that have the<br>
distinct traits of what is called &quot;event&quot;: timestamp, duration and<br>expiry; the Engine is clever enough to retract stale events automatically,<br>and there&#39;s a set of operators for comparing numbers that may<br>
represent points in time with some fancy overlap options. If you don&#39;t<br>need anything of this, don&#39;t use it; OTOH, if you compare dates, just<br>using the temporal operators may help.<br> <br>-W<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420701.html" target="_blank">http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420701.html</a><br>

</font><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>