Oops, I see that the operator still isn&#39;t quite right; you&#39;ll have to define<br>start and end of the interval:<br><br> this after[ 0s, 5s ] $event1<br><br>Just [5s] means &quot;from 5s to infinity&quot;, which, after &quot;not&quot; is going to take a long time to decide :-)<br>
<br>Please check the documentation on temporal operators in the Drools Fusion manual.<br>-W<br><br><div class="gmail_quote">On 26 October 2010 08:55, david.bao <span dir="ltr">&lt;<a href="mailto:david.lg.bao@gmail.com">david.lg.bao@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Now I understand I should use a &quot;not&quot; CE here. But following 4 code blocks<br>
return same result: no printing<br>
<br>
1.<br>
<div class="im">session.insert( event1 );<br>
clock.advanceTime( 3, TimeUnit.SECONDS );<br>
session.insert(event2);<br>
session.fireAllRules();<br>
<br>
</div>2.<br>
<div class="im">session.insert( event1 );<br>
clock.advanceTime( 3, TimeUnit.SECONDS );<br>
//session.insert(event2);<br>
session.fireAllRules();<br>
<br>
</div>3.<br>
<div class="im">session.insert( event1 );<br>
clock.advanceTime( 6, TimeUnit.SECONDS );<br>
session.insert(event2);<br>
session.fireAllRules();<br>
<br>
</div>4.<br>
<div class="im">session.insert( event1 );<br>
clock.advanceTime( 6, TimeUnit.SECONDS );<br>
//session.insert(event2);<br>
session.fireAllRules();<br>
<br>
</div>Thanks<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/CE-not-tp1771908p1772168.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/CE-not-tp1771908p1772168.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>