Hi, It might be a naive approach (assuming Person objects are facts), but did you try something like:
when $oldest : Person($age : age) not Person(age > $age) then System.out.println("Oldest person is " + $oldest.getName()); Best regards, Bruno. nemo a écrit : > Hi all, > > I'm a newbie here and have a problem which seems to be quite simple, but I > just can't solve it. I have a set of peoples with the attribute age and > want to get the oldest person from these set. I would really appreciate, if > somebody tells me how can I do it with jdrools. > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users