First question: are you using Drools Fusion?<div>If yes, did you try with something like this?:<div><br></div><div><span style>EventRecord(type=EventRequest, id=1) </span><br style><span style>not EventRecord(type=</span><span style>EventResponse, id=1, this after [1s,10s]).</span></div>

<div><br></div><div>I&#39;m using a 10s timeout here.</div><div><br></div><div>Best Regards,<br><div><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 Fri, Apr 13, 2012 at 3:03 PM, skatta1986 <span dir="ltr">&lt;<a href="mailto:shivaprasad_gdk@yahoo.co.in">shivaprasad_gdk@yahoo.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I would like to write a rule for events timeout case.<br>
<br>
Consider the events EventRecord(type=EventRequest, id=1) and<br>
EventRecord(type=EventResponse, id=1).<br>
I have written rules (in .drl file) for correlting the event request with<br>
event response.<br>
<br>
Now I would like to write timeout case. Suppose<br>
EventRecord(type=EventRequest, id=2) is not followed by its response. If we<br>
doesn&#39;t recieve response within 10 seconds, then it is considered as timeout<br>
case.<br>
I tried to use timers but it doen&#39;t work as it is not allowing me write<br>
inside when (LHS) pattern.<br>
<br>
Is there any other way to find timeout cases?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/please-provide-a-rule-for-events-timeout-cases-tp3907955p3907955.html" target="_blank">http://drools.46999.n3.nabble.com/please-provide-a-rule-for-events-timeout-cases-tp3907955p3907955.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>
</blockquote></div><br></div></div></div>