All bound variables are always scoped to the rule, but you can use rules
inheritance to extend the rules with your aggregates. It is not the same
thing, but might achieve the results you are looking for.
[]s
Edson
2009/6/12 Chris Richmond <crichmond(a)referentia.com>
Hello all,
I want to create a baseline rules file with Fusion that does some basic
aggregating that I know I will need later…things like keep running averages
over the last minute or so of several object values.
Is it possible to then “inherit” or at least reference those aggregates I
am keeping track of from another .drl file in some way…allowing me to always
keep my basic aggregation functions in one rule file and then add additional
rules/functions to my rule memory space later…or must any further rules that
wish to reference those aggregate or statistics objects also be contained
within the same .drl file? I understand I can have multiple .drl files, but
I am wondering specifically about referencing objects and variables created
in another rules file.
Thanks,
Chris
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @
www.jboss.com