[rules-users] drools cannot be resolved

2007-09-22 Thread Raffaele Viola
Hi all, why if I set in the condition eval(statoNodo.variabiliInOR(drools.getRule().getName())) I get the error drools cannot be resolved?? Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] drools cannot be resolved

2007-09-22 Thread Edson Tirelli
Because the drools variable is only available in consequences. What are you trying to do? []s Edson 2007/9/22, Raffaele Viola [EMAIL PROTECTED]: Hi all, why if I set in the condition eval(statoNodo.variabiliInOR(drools.getRule().getName())) I get the error drools cannot be

Re: [rules-users] drools cannot be resolved

2007-09-22 Thread Raffaele Viola
In the statoNodo.variabiliInOR(drools.getRule().getName(),$param) called in the condition part of the rule creates a list using $param that I add in the consequences part to another object called Azione. At the end Azione must contains the list created using the $param of is own row. But so far

Re: [rules-users] drools cannot be resolved

2007-09-22 Thread Edson Tirelli
Raffaele, The LHS of a rule should have no side effects, like creating the list. That is because the engine may fire the rule any time it is best suited to fire and we shouldn't try to control that. You will also lose expressiveness doing such things. My advice for you is to rethink your