[rules-users] how to use only updated value in drools
Wolfgang Laun
wolfgang.laun at gmail.com
Tue May 29 07:43:45 EDT 2012
On 29/05/2012, learner <anandbabu6545 at yahoo.com> wrote:
> Please find a basic structure of my drl file
>
> rule "set b value"
> salience 10
> no-loop
> when
> e : Person(b == " ");
> then
> ############## e.setB("10");
modify( e ){ setB( "10" ) }
Otherwise the Engine doesn't know about the change.
Read the Expert manual - this is fundamental.
-W
> end
>
> rule "b other than 10"
> salience 1
> no-loop
> when
> e : Person(b != "10")
> then
> System.out.println("error"+e.getB());
> end
>
More information about the rules-users
mailing list