How can I find the most recent date among all joining dates in a Drools object?
My rule is something like this:
declare RecentDate
dates : java.util.Date
end
rule "insert_dates"
when
//reading dates from back end
Employee($date : dateOfJoining, $name : name, salary > 10000)
then
insert(new RecentDate($date))
end
Now I would like to find the most recent employee based on dateOfJoining. Any help is appreciated. Thank you.