[rules-users] Use of the same reference in multipe rules
Rajesh.Sachin10
rajesh_sachin10 at yahoo.co.in
Tue Jun 5 09:05:34 EDT 2007
I asserted 3 class (Class1, Class2, Class3) in the working memory. I make an
reference for the class (Class1) in the first rule. Is it possible to use
the same reference in the 2nd rule?
Eg:
[when] class : Class1() eval(class.getVarName1() == "{value1}");
[then] .........do something.......
[when] eval(class.getVarName2() == "{value2}");
[then] ...........do something........
My requirement is to use the same class (Class1) in all the rules. I don't
want to iterate other two classes (Class2 & Class3) in rule 2.
--
View this message in context: http://www.nabble.com/Use-of-the-same-reference-in-multipe-rules-tf3871632.html#a10968978
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list