You can kickstart the Drools (and any similar) engine by telling them to do all that needs to be done and then take Time off forever and a day (fireAllRules), or to stay alert and catch them as they come (fireUntilHalt). You might guess that the latter implies multiple threads.<br>
-W<br><br><div class="gmail_quote">On 4 September 2011 18:38, eskomk <span dir="ltr">&lt;<a href="mailto:esko.hujanen@ebsolut.fi">esko.hujanen@ebsolut.fi</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi W,<br>
<br>
Thank you!<br>
<br>
Adding fire-all-rules did the trick:<br>
<br>
&lt;batch-execution lookup=&quot;ksession1&quot;&gt;<br>
 &lt;insert out-identifier=&quot;msg_11707096&quot;&gt;<br>
   &lt;path.to.AAABean&gt;<br>
       &lt;boxID&gt;7&lt;/boxID&gt;<br>
       &lt;sensorID&gt;37&lt;/sensorID&gt;<br>
       &lt;open&gt;true&lt;/open&gt;<br>
       &lt;countOpened&gt;4&lt;/countOpened&gt;<br>
   &lt;/path.to.AAABean&gt;<br>
  &lt;/insert&gt;<br>
  &lt;fire-all-rules out-identifier=&quot;firedActivations&quot;/&gt;<br>
&lt;/batch-execution&gt;<br>
<br>
It somewhat obscured that when dealing with plain facts there was no need to<br>
explicitly call fireAllRules ... Why ?<br>
<br>
Cheers,<br>
Esko<br>
------<br>
Esko Hujanen<br>
<a href="http://www.ebsolut.fi" target="_blank">http://www.ebsolut.fi</a><br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-deploy-Fusion-tp3287119p3308842.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-deploy-Fusion-tp3287119p3308842.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>
</font></blockquote></div><br>