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.