<br> Globals are supposed to be immutable, specially if you are using them on the LHS.<br> <br> []s<br> Edson<br><br><div><span class="gmail_quote">2008/2/14, <a href="mailto:nemesis29@free.fr">nemesis29@free.fr</a> <<a href="mailto:nemesis29@free.fr">nemesis29@free.fr</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok i found that i resolve this isue when usin an object immutable to embed my<br> boolean value.<br> <br> But no when the global is set in the rule the rule doesn't fire any more, but if<br> i comment the global line the rule fires.....<br>
<br> Any clue?<br> <br> Thanks<br> <br> Nicolas<br> <br> Selon <a href="mailto:nemesis29@free.fr">nemesis29@free.fr</a>:<br> <br><br> > hello all,<br> ><br> > Well i try to use global in one of my rules and it doesn't go well ^^.<br>
><br> > So in my code i have declared a Boolean flagTest = new Boolean(true), set it<br> > to<br> > a statless session : session.setGlobals("debugFlag", flagTest)and in my rule<br> > i<br> > have put :<br>
><br> > global java.lang.Boolean debugFlag.<br> ><br> > When Drools does : globals.putAll( newPkg.getGlobals() ); line 495 in<br> > AbstractRuleBase it throw java.lang.UnsupportedOperationException :-s<br>
><br> > Is it normal or is it a bug??<br> ><br> > Nicolas<br> > _______________________________________________<br> > rules-users mailing list<br> > <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br> ><br> <br> <br> _______________________________________________<br> rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br> </blockquote></div>
<br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>