[rules-users] Syntax Question on an or condition
Wolfgang Laun
wolfgang.laun at gmail.com
Wed May 28 11:05:10 EDT 2014
On 28/05/2014, Chidambaran Subramanian <chiddu at 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
More information about the rules-users
mailing list