[rules-users] how to use only updated value in drools
learner
anandbabu6545 at yahoo.com
Tue May 29 07:38:13 EDT 2012
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");
end
rule "b other than 10"
salience 1
no-loop
when
e : Person(b != "10")
then
System.out.println("error"+e.getB());
end
The problem is the sysout gets printed in rule 2 , but it should not as the
value of b is modified to 10 in 1st rule
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-how-to-use-only-updated-value-in-drools-tp4017628p4017647.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list