[rules-users] Why does it make this error?PB using globals

nemesis29 at free.fr nemesis29 at free.fr
Thu Feb 14 04:44:23 EST 2008


hello all,

Well i try to use global in one of my rules and it doesn't go well ^^.

So in my code i have declared a Boolean flagTest = new Boolean(true), set it to
a statless session : session.setGlobals("debugFlag", flagTest)and in my rule i
have put :

global java.lang.Boolean debugFlag.

When Drools does : globals.putAll( newPkg.getGlobals() ); line 495 in
AbstractRuleBase it throw java.lang.UnsupportedOperationException :-s

Is it normal or is it a bug??

Nicolas



More information about the rules-users mailing list