Mind you, it's not in the "stable" API, but I suppose it still works with
5.4.0.
It's one of the several thing I keep nagging about: that what you can
program in DRL - which is considered to be stable - you should be able
to retrieve via the stable API, at runtime.
Preaching to deaf ears. :-\
-W
On 22/06/2012, gqmulligan <gqmulligan(a)gmail.com> wrote:
I actually found this method by Wolfgang in an earlier post from over
a
year
ago:
KnowledgePackage kPackage = ...;
KnowledgePackageImp kPackageImp = (KnowledgePackageImp)kPackage;
org.drools.rule.Package package_ = kPackageImp.pkg;
// globals: key is name, value is type name
Map<String, String> name2global = package_.getGlobals();
Is this still the accepted method of getting globals?
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Setting-unused-globals-on-a-session-tp4...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users