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

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>
</blockquote></div><br>