On 28/05/2014, Chidambaran Subramanian <chiddu(a)gmail.com> wrote:
rule "Test"
dialect "mvel"
when
( Customer( age == 50 ) or Deal( amount == 30 ) )
then
Customer.setAge( "40" );
update( Customer );
Customer.setPlace( "Test" );
update( Customer );
end
The rule uses invalid syntax: Customer is a class name, and you cannot
update a class. Check the Expert manual on how to write rules.
Besides, the logic doesn't make sense, because you'd not even need a
Customer for the condition to be true, and then you can't do anything
with a Customer object.
How to do I tag both Customer and Deal on the 1st condition , to enable me
to
What?
-W