Hello,<br>have you looked at the cep part of drools ? (drools-fusion)<br>it is exactly doing what you want with event.<br>You add an event caracteristic on an existing fact you insert in a statefull session<br>and you can have rules using time constraint <br>
regards<br>Nicolas Heron<br><br><div class="gmail_quote">2009/4/22 cyphr <span dir="ltr"><<a href="mailto:hrishikesh.varma@wipro.com">hrishikesh.varma@wipro.com</a>></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,<br>
<br>
I have a scenario where i have:<br>
- A listener that listens to a port and collects datapackets(Logs of<br>
Events) as they come and dumps to a DB.<br>
- consider the data that goes into my table is parsed, processed<br>
(meaningful, not raw anymore).<br>
<br>
<br>
Can Drools sit in between this listener and my DataBase to achieve the<br>
following :<br>
<br>
1. Monitor the frequency of occurrence? Say if/when event 'X' occurs 'n'<br>
times in a 'z' time window?<br>
2. ignore event 'X' until it occurs n times.<br>
3. track a sequence of events - event X followed by event y within a fixed<br>
time window.<br>
<br>
(the RHS for any of these is, at the moment, not very consequential. i might<br>
just raise a flag or something to indicate something has happened...)<br>
<br>
My query is primarily to understand if this can be achieved.<br>
i may have around a million logs a day, but - only one event at a time is<br>
passed from the listener to Drools. Can drools hold the knowledge of<br>
previous facts(like count) into its working session? or does it require to<br>
store all these facts also?<br>
<br>
Should i be firing the rules whenever each log/event enters my system? or<br>
should i accumulate the day's facts ? (but i might have rules that need to<br>
catch conditions spreading over a few days ...)<br>
<br>
Some pointers or suggestions on this would be great!<br>
Thanks!<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://www.nabble.com/Can-Drools-be-Used-for-this-application--tp23170278p23170278.html" target="_blank">http://www.nabble.com/Can-Drools-be-Used-for-this-application--tp23170278p23170278.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>