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
Now I understand I should use a "not" CE here. But following 4 code blocks
return same result: no printing
1.
session.insert( event1 );2.
clock.advanceTime( 3, TimeUnit.SECONDS );
session.insert(event2);
session.fireAllRules();
session.insert( event1 );3.
clock.advanceTime( 3, TimeUnit.SECONDS );
//session.insert(event2);
session.fireAllRules();
session.insert( event1 );4.
clock.advanceTime( 6, TimeUnit.SECONDS );
session.insert(event2);
session.fireAllRules();
session.insert( event1 );Thanks
clock.advanceTime( 6, TimeUnit.SECONDS );
//session.insert(event2);
session.fireAllRules();
--
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