[rules-users] Setting Globals inside Rules

Gary Napier gnapier at cis.strath.ac.uk
Tue Sep 30 09:34:52 EDT 2008


Hi all,

I have common code that can run a number of different rule base(s) and 
so far each of the different rule bases have utilized common Global 
variables (lists of regular expressions and runtime options)

However a new rule base will require additional /different globals to be 
set and i do not want to change the code that invokes the engine and 
compiles the rule base.

Is it possible, by way of an example, to have a rule execute upon rule 
base initialization and populate a series of global variables? Ideally 
this would come from a settings config file in the same directory as the
rule .drl files.

Thanks
Gary




More information about the rules-users mailing list