First question: are you using Drools Fusion?
If yes, did you try with something like this?:

EventRecord(type=EventRequest, id=1) 
not EventRecord(type=EventResponse, id=1, this after [1s,10s]).

I'm using a 10s timeout here.

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Fri, Apr 13, 2012 at 3:03 PM, skatta1986 <shivaprasad_gdk@yahoo.co.in> wrote:
Hi,

I would like to write a rule for events timeout case.

Consider the events EventRecord(type=EventRequest, id=1) and
EventRecord(type=EventResponse, id=1).
I have written rules (in .drl file) for correlting the event request with
event response.

Now I would like to write timeout case. Suppose
EventRecord(type=EventRequest, id=2) is not followed by its response. If we
doesn't recieve response within 10 seconds, then it is considered as timeout
case.
I tried to use timers but it doen't work as it is not allowing me write
inside when (LHS) pattern.

Is there any other way to find timeout cases?



--
View this message in context: http://drools.46999.n3.nabble.com/please-provide-a-rule-for-events-timeout-cases-tp3907955p3907955.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users