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"><<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 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>
><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 '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 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<br>
>> 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<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>
>> <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>
</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>