<br>   Your rule is wrong, as you are defining 3 patterns and the second pattern is looking for a fact in the main entry point, not your defined &quot;MyEntryPoint&quot;.<br>   Fix it doing:<br><br>$s2 : MyModel ( name != &quot;aaa&quot; , id != $<a href="http://s1.id/" target="_blank">s1.id</a>, ip == $s1, this after [0m,5m] $s1) from entry-point &quot;MyEntryPoint&quot;<br>

 <br>   []s<br>   Edson<br><br><div class="gmail_quote">2009/7/21 nestabur <span dir="ltr">&lt;<a href="mailto:nestabur@gmail.com" target="_blank">nestabur@gmail.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>
Hi all,<br>
<br>
I&#39;m getting crazy trying to create a CEP rule in droos 5.0.1 :(<br>
<br>
The rule is:<br>
===============<br>
rule &quot;RetractOlderFacts&quot;<br>
        dialect &quot;mvel&quot;<br>
        when<br>
                $s1 : MyModel( name != &quot;aaa&quot;) from entry-point &quot;MyEntryPoint&quot;<br>
                $s2 : MyModel ( name != &quot;aaa&quot; , id != $<a href="http://s1.id" target="_blank">s1.id</a>, ip == $s1) and MyModel (<br>
this after [0m,5m] $s1) from entry-point &quot;MyEntryPoint&quot;<br>
        then<br>
                retract($s2);<br>
                System.out.println(&quot; ********* Retracting from WM&quot;);<br>
end<br>
===============<br>
<br>
The scenario is:<br>
&quot;After receiving a fact &quot;MyModel&quot; wich name != &quot;aaa&quot;, if arrives another<br>
with same ip and different id after a period between 0 and 5 minutes the<br>
rule have to retract the last one and keep the first fact (the older one)&quot;<br>
<br>
After receiving hundred and hundred of facts via JMS that may match with the<br>
rule condition, the rule never throws!<br>
<br>
is the rule correct?<br>
could the problem be at the rule engine implementation?<br>
<br>
Could anyone hel me please?<br>
<br>
Thanks in advance,<br>
<br>
nestabur<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/CEP-Rule-Help-Needed-tp24591289p24591289.html" target="_blank">http://www.nabble.com/CEP-Rule-Help-Needed-tp24591289p24591289.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" target="_blank">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>