<br>   For &quot;not&quot; and &quot;exists&quot; on anything but a simple pattern, you need to wrap it up in ( ). So, if you are using &quot;from&quot; you need to wrap up:<br><br>       not ( AbortedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se)<br>

                from entry-point &quot;stream&quot; )<br>
<br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/8/30 Barry Kaplan <span dir="ltr">&lt;<a href="mailto:groups1@memelet.com">groups1@memelet.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m trying to formulate a condition like:<br>
<br>
        $se : StartEvent()<br>
                from entry-point &quot;stream&quot;<br>
<br>
        $fe : FinishedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se)<br>
                from entry-point &quot;stream&quot;<br>
<br>
        not AbortedEvent(exchangeId == $se.exchangeId, this after[0s,30s] $se)<br>
                from entry-point &quot;stream&quot;<br>
<br>
A compile error is issued due to the use of &#39;not&#39; on the last clause. Is<br>
this not supported? Is there another way to obtain this behavior.<br>
<br>
Even this simple clause is not value:<br>
<br>
        not AbortedEvent()  from entry-point &quot;stream&quot;<br>
<br>
<br>
----<br>
The corresponding esper for this would be something like:<br>
<br>
    select * from pattern [every s=StartEvent -&gt;<br>
        (f=FinishedEvent(exchangeId = s.echangeId) where timer:within(30<br>
sec)<br>
            and not AbortedEvent(exchangeId = s.echangeId) where<br>
timer:within(30 sec)]<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Not-conditional-%27not%27-for-event-streams--tp25217095p25217095.html" target="_blank">http://www.nabble.com/Not-conditional-%27not%27-for-event-streams--tp25217095p25217095.html</a><br>

Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</font></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>