[rules-users] Storing temp results in eval block

Edson Tirelli tirelli at post.com
Mon Aug 27 13:18:25 EDT 2007


    Not really and that is why it is better to avoid eval() blocks.
    Can you show what rule are you trying to create? Maybe there is another
way of writing it?

    []s
    Edson

2007/8/27, cfili <cfilippelli at cerner.com>:
>
>
> 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.
> >
>
> --
> View this message in context:
> http://www.nabble.com/Storing-temp-results-in-eval-block-tf4225783.html#a12351896
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070827/cfc9d5a5/attachment.html 


More information about the rules-users mailing list