Hi,
I've been reading the Drools documentation where it is mentioned that
"It is strongly discouraged to set (or change) a global value from
inside your rules. We recommend to you always set the value from your
application using the working memory interface." What is the reason for
this?
Also, in the example shown, are you not modifying the global? Isn't it
what is discouraged?
* global java.util.List myGlobalList;
*
* rule "Using a global"
* when
* eval( true )
* then
* myGlobalList.add( "Hello World" );
* end
Thanks,
Seema
Show replies by date