Hello<br>
You can set any attribute as the time clock<br>
You have to add an annotation<br>
It is in the fusion doc<br>Sorry for my late answer but I am on holidays :)<br>
Regards<br>
Nicolas<br><br><div class="gmail_quote">2009/4/27 cyphr <span dir="ltr">&lt;<a href="mailto:hrishikesh.varma@wipro.com">hrishikesh.varma@wipro.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>
Thanks Nicolas,<br>
I looked into Drools-fusion over the weekend - interesting!<br>
i noticed that the events are wound around the clock in the example provided<br>
- is that so always?<br>
i would want my correlation to work with the time from timestamp that is<br>
already there as part of the fact.<br>
<br>
Any pointers on where i can get some more reading done on drools-fusion,<br>
with some more examples?<br>
<br>
Thanks again!<br>
Rishi<br>
<div><div></div><div class="h5"><br>
<br>
Nicolas Héron wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt; have you looked at the cep part of drools ? (drools-fusion)<br>
&gt; it is exactly doing what you want with event.<br>
&gt; You add an event caracteristic on an existing fact you insert in a<br>
&gt; statefull<br>
&gt; session<br>
&gt; and you can have rules using time constraint<br>
&gt; regards<br>
&gt; Nicolas Heron<br>
&gt;<br>
&gt; 2009/4/22 cyphr &lt;<a href="mailto:hrishikesh.varma@wipro.com">hrishikesh.varma@wipro.com</a>&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I have a scenario where i have:<br>
&gt;&gt;  - A listener that listens to a port and collects datapackets(Logs of<br>
&gt;&gt; Events) as they come and dumps to a DB.<br>
&gt;&gt;  - consider the data that goes into my table is parsed, processed<br>
&gt;&gt; (meaningful, not raw anymore).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Can Drools sit in between this listener and my DataBase to achieve the<br>
&gt;&gt; following :<br>
&gt;&gt;<br>
&gt;&gt; 1. Monitor the frequency of occurrence? Say if/when event &#39;X&#39;  occurs &#39;n&#39;<br>
&gt;&gt; times in a &#39;z&#39; time window?<br>
&gt;&gt; 2. ignore event &#39;X&#39; until it occurs n times.<br>
&gt;&gt; 3. track a sequence of events - event X followed by event y within a<br>
&gt;&gt; fixed<br>
&gt;&gt; time window.<br>
&gt;&gt;<br>
&gt;&gt; (the RHS for any of these is, at the moment, not very consequential. i<br>
&gt;&gt; might<br>
&gt;&gt; just raise a flag or something to indicate something has happened...)<br>
&gt;&gt;<br>
&gt;&gt; My query is primarily to understand if this can be achieved.<br>
&gt;&gt; i may have around a million logs a day, but - only one event at a time is<br>
&gt;&gt; passed from the listener to Drools. Can drools hold the knowledge of<br>
&gt;&gt; previous facts(like count) into its working session? or does it require<br>
&gt;&gt; to<br>
&gt;&gt; store all these facts also?<br>
&gt;&gt;<br>
&gt;&gt; Should i be firing the rules whenever each log/event enters my system? or<br>
&gt;&gt; should i accumulate the day&#39;s facts ? (but i might have rules that need<br>
&gt;&gt; to<br>
&gt;&gt; catch conditions spreading over a few days ...)<br>
&gt;&gt;<br>
&gt;&gt; Some pointers or suggestions on this would be great!<br>
&gt;&gt; Thanks!<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <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>
&gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Can-Drools-be-Used-for-this-application--tp23170278p23249692.html" target="_blank">http://www.nabble.com/Can-Drools-be-Used-for-this-application--tp23170278p23249692.html</a><br>

</font><div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<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>
</div></div></blockquote></div><br>