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"><<a href="mailto:dac@akc.org">dac@akc.org</a>></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>
><br>
> On 24 August 2011 15:34, dcrissman &<a href="mailto:lt%3Bdac@akc.org">lt;dac@akc.org</a>&gt; wrote:<br>
><br>
>><br>
>> Esteban wrote:<br>
>> ><br>
>> > What are the steps you are following? Something like this?:<br>
>> ><br>
>> > The agent creates the kbase<br>
>> > Get kbase from kagent<br>
>> > Create a stateless ksession<br>
>> > insert some facts<br>
>> > fire all rules<br>
>> > check result<br>
>> > modify drl<br>
>> > wait until kagent rebuilds the kbase<br>
>> > get the new kbase from kagent<br>
>> > Create a stateless ksession<br>
>> > insert some facts<br>
>> > fire all rules<br>
>> > check result<br>
>> ><br>
>> > Also, which version of Drools are you using?<br>
>> ><br>
>><br>
>> The steps you outline are correct.<br>
>><br>
><br>
> You cannot "insert some facts" and "fire all rules" on a stateless<br>
> knowledge<br>
> session. So what is the sequence of API calls? Configurations?<br>
> -W<br>
><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>