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(a)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-mul...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users