[rules-users] Rules stop firing when white-space is changed

dcrissman dac at akc.org
Wed Aug 24 09:34:06 EDT 2011


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.
That modification can be white space or an actual logic change; but does not
need to be localized in the rule that stops working.
Drools Version: 5.1.0


Wolfgang wrote:
> 
> Incremental change set processing might create the effect you describe.
> Declared types are always replaced; rules only if they differ.
> 


Esteban wrote:
> 
> He doesn't seem to be using KAgent in incremental mode. So, each time a
> change is detected, a new KBase is created. All sessions previously
> created will continue using the old kbase.
> He is using Stateless ksessions.
> 

As Esteban inferred, incremental mode is not being used. A new session is
created with each run.

--
View this message in context: http://drools.46999.n3.nabble.com/Rules-stop-firing-when-white-space-is-changed-tp3278986p3280973.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list