Thanks you a lot for a answers. Now, I wrote a rule:
rule "Get last event"
when
$last : ObjectEventType( $time : eventTime )
not ObjectEventType( eventTime > $time )
then
System.out.println("Oldest person is " + $last.getEventTime());
Unfortunately I get "Syntax error, insert ";" to complete Statement,
Syntax
error, insert ")" to complete Expression" have you an idea, what's
wrong?
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Get-maximum-tp2318296...
Sent from the Drools - User mailing list archive at
Nabble.com.