2 questions: <div>Is EventY also declared as event?</div><div>Are you using STREAM mode?</div><div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 6:59 PM, arun1979 <span dir="ltr">&lt;<a href="mailto:t91192004@yahoo.com">t91192004@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Below is the code<br>
<br>
declare EventX<br>
    @role( event )<br>
    @timestamp( eventDate )<br>
    @expires( 2m )<br>
end<br>
<br>
rule &quot;test rule&quot;<br>
no-loop<br>
when<br>
    event : EventX(eventType == &#39;XYZ&#39;, $oId :Id)<br>
    not ( EventY(eventType == &#39;ABC&#39;,  Id == $oId, this after[0s,8s] event))<br>
<br>
then<br>
//fire the rule. code never reaches here if EventY does not occur at all<br>
end<br>
<br>
<br>
Can someone help me in understanding what i am doing wrong. I tried removing<br>
the not and inserting EventY and it works fine. The eventDate is also<br>
populated for both events.<br>
<br>
Thanks<br>
<br>
Arun<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3225995.html" target="_blank">http://drools.46999.n3.nabble.com/when-should-we-the-not-operator-tp3225995p3225995.html</a><br>


Sent from the Drools: User forum 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>
</font></blockquote></div><br></div>