<br> Not really and that is why it is better to avoid eval() blocks.<br> Can you show what rule are you trying to create? Maybe there is another way of writing it?<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">
2007/8/27, cfili <<a href="mailto:cfilippelli@cerner.com">cfilippelli@cerner.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;">
<br>I still have not found a solution to this problem. Nobody has a suggestion?<br><br><br>cfili wrote:<br>><br>> Hi,<br>> I have just started using Drools 4.0 and I am very pleased so far. I do<br>> have one question regarding storage of a result from within an eval block.
<br>> For example if I have the following eval in my rule:<br>><br>> eval((value1 /value2) > 0.5)<br>><br>> Is there a way to store the result of value1/value2 in a temp variable so<br>> that it can be accessed in the "then" part of my rule? I want to avoid
<br>> recomputing the result again in the then section.<br>><br>> Thanks.<br>><br><br>--<br>View this message in context: <a href="http://www.nabble.com/Storing-temp-results-in-eval-block-tf4225783.html#a12351896">
http://www.nabble.com/Storing-temp-results-in-eval-block-tf4225783.html#a12351896</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<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> 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>