Actually I need to compare same type of facts in session with each other.
Lets say 10 Person object gets inserted into session.
I want to compare them with each other first. To find which one born first
in the measuring period (lets say in 2012)
After wards I need to compare attribute of that fact,like gender, name etc.
Currently I am using eval to call on list of person facts to find the person
first born in period & afterwards
$P : person (eval(PersonArray.bornIn($P, "1/1/2012" , "12/31/2012" ) )
,
gender == male)
I want to find a better way as compare to use eval.
--
View this message in context:
http://drools.46999.n3.nabble.com/compare-attributes-form-similar-type-tp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.