[rules-users] Declared Types and Globals in different files with incremental KnowledgeAgent
Wolfgang Laun
wolfgang.laun at gmail.com
Sat Sep 21 06:41:36 EDT 2013
Just a remark...
On 20/09/2013, De Rooms Brecht <bderooms at vub.ac.be> wrote:
> * FILE1: global_rules_matches.drl
> ----------------------------------------------
> package ellipsoidfacts
>
> // declare
> global Integer RULES_MATCHED;
>
> // initialize global
> rule "initRULESMATCHED"
> salience 999
> when
>
> then
> RULES_MATCHED = 0;
This isn't going to work due to the way globals are implemented. Stick
to the API for setting and getting a global.
-W
> end*
>
More information about the rules-users
mailing list