[rules-users] proper syntax for multiple function calls within LHS

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jan 27 02:15:24 EST 2011


These questions are answered in the Drools Expert documentation. Look for
subsection headers "Bound Variable Restriction" and "Return Value
Restriction".

-W


On 27 January 2011 02:13, garySFCA844 <gs999zzz at yahoo.com> wrote:

>
> hello,
>
> I'm a newbie to Drools.  I'm trying to write a rule that performs some
> math,
> without resorting to a function or eval. I searched the forum but found
> lots
> of posts on nested function calls,etc but not what I was searching for.
>
> For simplicity, lets assume I have the following classes
>
> public class ONE{
> double A
> double B
> double C
> }
>
> public class TWO{
> double D
> double E
> }
>
> where A, B, C, D, E are themselves calculated values (apr, price at some
> date, etc)
>
> 1. What does the LHS of a rule that compares A > D look like?
>
> 2. What does the LHS of a rule that compares A+B > C look like?
>
> 3. What does the LHS of a rule that compares A+D > C look like?
>
>
> I apologize in advance if this was covered already.
>
> Thanks.
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/proper-syntax-for-multiple-function-calls-within-LHS-tp2359020p2359020.html
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110127/02ff7b9a/attachment.html 


More information about the rules-users mailing list