[rules-users] Get maximum

Swindells, Thomas TSwindells at nds.com
Mon Jan 24 04:56:59 EST 2011


Your then should probably be on a new line and you are missing the end. (don't know if that is a copy and paste error.
Have you imported ObjectEventType?

Thomas

> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org [mailto:rules-users-
> bounces at lists.jboss.org] On Behalf Of nemo
> Sent: 24 January 2011 09:51
> To: rules-users at lists.jboss.org
> Subject: Re: [rules-users] Get maximum
>
>
> 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-tp2318296p2318514.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************




More information about the rules-users mailing list