[rules-users] Storing temp results in eval block

Mark Proctor mproctor at codehaus.org
Mon Aug 27 13:14:19 EDT 2007


There is currently no way to do this.

Mark
cfili wrote:
> I still have not found a solution to this problem.  Nobody has a suggestion?
>
>
> cfili wrote:
>   
>> Hi,
>> I have just started using Drools 4.0 and I am very pleased so far.  I do
>> have one question regarding storage of a result from within an eval block. 
>> For example if I have the following eval in my rule:
>>
>> eval((value1 /value2) > 0.5)
>>
>> Is there a way to store the result of value1/value2 in a temp variable so
>> that it can be accessed in the "then" part of my rule?  I want to avoid
>> recomputing the result again in the then section.
>>
>> Thanks.
>>
>>     
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070827/1dee2909/attachment.html 


More information about the rules-users mailing list