The only thing you can do with a Stateless Knowledge Session is to call its execute method, overloaded to take a single object or a collection of objects to be inserted<br>or a command to be executed. A command may not do much more than execute with insert(s): get/setGlobal is also possible. What commands are applied to the session?<br>
<br>What happens if you reexecute the action without a change in the DRL?<br><br>-W<br><br><br><div class="gmail_quote">On 26 August 2011 17:06, dcrissman <span dir="ltr">&lt;<a href="mailto:dac@akc.org">dac@akc.org</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;"><br>
Wolfgang Laun-2 wrote:<br>
&gt;<br>
&gt; On 24 August 2011 15:34, dcrissman &amp;<a href="mailto:lt%3Bdac@akc.org">lt;dac@akc.org</a>&amp;gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Esteban wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What are the steps you are following? Something like this?:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;     The agent creates the kbase<br>
&gt;&gt; &gt;     Get kbase from kagent<br>
&gt;&gt; &gt;     Create a stateless ksession<br>
&gt;&gt; &gt;     insert some facts<br>
&gt;&gt; &gt;     fire all rules<br>
&gt;&gt; &gt;     check result<br>
&gt;&gt; &gt;     modify drl<br>
&gt;&gt; &gt;     wait until kagent rebuilds the kbase<br>
&gt;&gt; &gt;     get the new kbase from kagent<br>
&gt;&gt; &gt;     Create a stateless ksession<br>
&gt;&gt; &gt;     insert some facts<br>
&gt;&gt; &gt;     fire all rules<br>
&gt;&gt; &gt;     check result<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Also, which version of Drools are you using?<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; The steps you outline are correct.<br>
&gt;&gt;<br>
&gt;<br>
&gt; You cannot &quot;insert some facts&quot; and &quot;fire all rules&quot; on a stateless<br>
&gt; knowledge<br>
&gt; session. So what is the sequence of API calls? Configurations?<br>
&gt; -W<br>
&gt;<br>
<br>
We have a web application running on Tomcat. The user can initiate an action<br>
that fires a series of stateless drules rules.<br>
<br>
If I fire up the application on tomcat and execute the action in the portal<br>
that runs the drools rules it works. If I change the drl file while tomcat<br>
is still running, wait for the altered rules to be loaded, then execute the<br>
action again. Some rules will not fire the second time that fired the first<br>
time.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-stop-firing-when-white-space-is-changed-tp3278986p3287114.html" target="_blank">http://drools.46999.n3.nabble.com/Rules-stop-firing-when-white-space-is-changed-tp3278986p3287114.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>