[rules-users] Setting unused globals on a session

gqmulligan gqmulligan at gmail.com
Fri Jun 22 14:03:34 EDT 2012


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.


More information about the rules-users mailing list