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-tp4018146p4018180.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to