[rules-users] Setting unused globals on a session

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 22 14:12:11 EDT 2012


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


More information about the rules-users mailing list