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"><<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>
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>
><br>
> 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>
> 2009/4/27 cyphr <<a href="mailto:hrishikesh.varma@wipro.com">hrishikesh.varma@wipro.com</a>><br>
><br>
>><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<br>
>> 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>
>><br>
>><br>
>> Nicolas Héron wrote:<br>
>> ><br>
>> > 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<br>
>> > statefull<br>
>> > session<br>
>> > and you can have rules using time constraint<br>
>> > regards<br>
>> > Nicolas Heron<br>
>> ><br>
>> > 2009/4/22 cyphr <<a href="mailto:hrishikesh.varma@wipro.com">hrishikesh.varma@wipro.com</a>><br>
>> ><br>
>> >><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<br>
>> '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<br>
>> >> fixed<br>
>> >> time window.<br>
>> >><br>
>> >> (the RHS for any of these is, at the moment, not very consequential. i<br>
>> >> 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<br>
>> 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<br>
>> require<br>
>> >> to<br>
>> >> store all these facts also?<br>
>> >><br>
>> >> Should i be firing the rules whenever each log/event enters my system?<br>
>> or<br>
>> >> should i accumulate the day's facts ? (but i might have rules that<br>
>> need<br>
>> >> to<br>
>> >> catch conditions spreading over a few days ...)<br>
>> >><br>
>> >> Some pointers or suggestions on this would be great!<br>
>> >> Thanks!<br>
>> >><br>
>> >> --<br>
>> >> View this message in context:<br>
>> >><br>
>> <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>
>> >><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>
>> ><br>
>> ><br>
>><br>
>> --<br>
>> View this message in context:<br>
>> <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>
>> 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>
>><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>
><br>
><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>