As far as I know, it's not a good idea to use global variable that have a modifiable state for asserting rule conditions (strange behaviors can happen).
I would insert in the working memory the variable object as a fact. On Wed, 8 Jul 2009 02:56:44 -0700 (PDT), skasab2s <[email protected]> wrote: > Hi guys, > > as far as I understood, in the rule conditions I can check what objects are > in the working memory and so on.. > But can I check for example a global variable value which I have declared > in > the same .DRL-File? > for example: > > global Boolean testWeanable > .... > > when > testWeanable==true > then > do this and that > end > > or should I insert the variable testWeanable into the Working Memory to do > this? > > Thanks a lot and many greets! _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
