I save many different knowledge packages for different accounts to a
database. Most accounts use a particular service to pull data from the
database but not all of them. Because of this I wanted to set this service
as a global on the session.
However, because not all accounts use the service I get an exception when I
try to set it on the session for an account that does not use the service
anywhere in its rules. Does an exception really need to be thrown in this
case?
Also, do I have any options to work around this exception without having
some sort of "master" rule that is automatically put into all accounts and
declares all globals? The service is being pulled from a bean so I would
like to stay away from having to find it by name and keep to injecting any
global services if possible.
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.