Hi,
I'm new to drools. I came across this piece of rule in one of the blogs. The
rule is like this:
when
$cust : Customer( region >= 1 )
$order : Order( customer == $cust, totalAmount > 30 )
then
something...
Following are my questions
1. In the above rule, I specify Order( customer == $cust...) to make the
rule more specific to a customer. Right?
2. Suppose I remove the 'customer == $cust' check from Order, won't the
result be the same?
3. Cal I write the same thing using XML in drools 3.0. Is that possible?
4. Also, in my second condition can I specify some more CEs like
$order: Order( (customer == $cust , (totalAmount > 500 ||
numberoforders < 400) )
Thanks,
Sudha
--
View this message in context:
http://www.nabble.com/Help-on-writing-XML-rules-tf2880224.html#a8048347
Sent from the drools - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email