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
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?

What happens if you reexecute the action without a change in the DRL?

-W


On 26 August 2011 17:06, dcrissman <dac@akc.org> wrote:

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

We have a web application running on Tomcat. The user can initiate an action
that fires a series of stateless drules rules.

If I fire up the application on tomcat and execute the action in the portal
that runs the drools rules it works. If I change the drl file while tomcat
is still running, wait for the altered rules to be loaded, then execute the
action again. Some rules will not fire the second time that fired the first
time.


--
View this message in context: http://drools.46999.n3.nabble.com/Rules-stop-firing-when-white-space-is-changed-tp3278986p3287114.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users