<div><br></div>   Which Drools version are you using?<div><br></div><div>   There are no &quot;secrets&quot;, but you have to be aware that in this mode rules will fire right away if they can. Also, if you are using 5.4.0.Final, please read another e-mail I sent to the list today, as there was a concurrency bug that was fixed in the 5.4.x branch that could cause NPE.</div>
<div><br></div><div>   Edson</div><div><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 10:16 PM, crajor <span dir="ltr">&lt;<a href="mailto:crjorge@sandia.gov" target="_blank">crjorge@sandia.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a fairly complicated drools program and I want to introduce temporal<br>
reasoning to it.  I spent a bit of time writing some proof-of-concept<br>
programs to get the feel of fusion and then tried to slowly introduce things<br>
into my original drools program.  When I changed my program from using<br>
fireAllRules() to using fireUntilHalt() on a separate thread, I suddenly get<br>
failures in my unit tests.  (My first thought was that there was a race<br>
condition between my unit tests and the thread calling fireUntilHalt() so I<br>
introduced a delay before my unit tests but no luck)<br>
<br>
Here are some of the behaviors I am seeing.<br>
<br>
1) I occasionally get nullpointerexception from the thread running<br>
fireUntilHalt()<br>
2) My lock-on-active rules aren&#39;t firing<br>
<br>
I have banged my head on this a while with no success.  (I even tried<br>
putting fireAllRules() in a loop because of suggestions I saw but no luck<br>
and same behavior).  My questions are, Is there a secret to using<br>
fireUntilHalt() that I am not aware of?  Can anybody point me to where I can<br>
educate myself on its proper use?<br>
<br>
BTW no persistence and no spring in the code at this point.<br>
<br>
Thanks, in advance, for any help you can provide.<br>
<br>
Craig<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/FireUntilHalt-tp4018610.html" target="_blank">http://drools.46999.n3.nabble.com/FireUntilHalt-tp4018610.html</a><br>
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>
</blockquote></div><br><br clear="all"><div><br></div>-- <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>