Oops, I see that the operator still isn't quite right; you'll have to define
start and end of the interval:

 this after[ 0s, 5s ] $event1

Just [5s] means "from 5s to infinity", which, after "not" is going to take a long time to decide :-)

Please check the documentation on temporal operators in the Drools Fusion manual.
-W

On 26 October 2010 08:55, david.bao <david.lg.bao@gmail.com> wrote:

Now I understand I should use a "not" CE here. But following 4 code blocks
return same result: no printing

1.
session.insert( event1 );
clock.advanceTime( 3, TimeUnit.SECONDS );
session.insert(event2);
session.fireAllRules();

2.
session.insert( event1 );
clock.advanceTime( 3, TimeUnit.SECONDS );
//session.insert(event2);
session.fireAllRules();

3.
session.insert( event1 );
clock.advanceTime( 6, TimeUnit.SECONDS );
session.insert(event2);
session.fireAllRules();

4.
session.insert( event1 );
clock.advanceTime( 6, TimeUnit.SECONDS );
//session.insert(event2);
session.fireAllRules();

Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/CE-not-tp1771908p1772168.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users