<br> Raffaele,<br><br> 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.
<br> My advice for you is to rethink your rules, maybe creating multiple rules if it is the case, having in mind that the LHS of a rule is a pattern matching condition saying "when" the rule should fire, and only the RHS of the rules should execute any real action.
<br><br> Hope it helps,<br> Edson<br><br><div><span class="gmail_quote">2007/9/22, Raffaele Viola <<a href="mailto:raffovi@gmail.com">raffovi@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the <span style="color: rgb(255, 0, 0);">statoNodo.variabiliInOR(drools.getRule().getName(),$param) <span style="color: rgb(0, 0, 0);">called in the condition part of the rule creates a list using $param that I add in the
</span></span>consequences part to another object called Azione.<br><br>At the end Azione must contains the list created using the $param of is own row.<br><br>But so far I have no solution<br>Thanks<br>Raffo<br style="color: rgb(0, 0, 0);">
<br><div><span class="gmail_quote">2007/9/22, Edson Tirelli <<a href="mailto:tirelli@post.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tirelli@post.com</a>>:</span><span class="q"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Because the "drools" variable is only available in consequences. What are you trying to do?<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/9/22, Raffaele Viola <<a href="mailto:raffovi@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
raffovi@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>Hi all,<br>
<br>why if I set in the condition <br><br><div style="margin-left: 40px;">
<span style="color: rgb(255, 0, 0);">eval(statoNodo.variabiliInOR(drools.getRule().getName()))</span><br></div>I get the error<br><div style="margin-left: 40px;">
<span style="color: rgb(255, 0, 0);">drools cannot be resolved??</span><br></div><br>Thanks<br>Raffo<br>
<br></span></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.jboss.com</a>
<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rules-users@lists.jboss.org
</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></span></div><br>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<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>