[rules-users] Can Drools be Used for this application?

cyphr hrishikesh.varma at wipro.com
Sun Apr 26 23:52:22 EDT 2009


Thanks Nicolas,
I looked into Drools-fusion over the weekend - interesting!
i noticed that the events are wound around the clock in the example provided
- is that so always?
i would want my correlation to work with the time from timestamp that is
already there as part of the fact.

Any pointers on where i can get some more reading done on drools-fusion,
with some more examples?

Thanks again!
Rishi 


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

-- 
View this message in context: http://www.nabble.com/Can-Drools-be-Used-for-this-application--tp23170278p23249692.html
Sent from the drools - user mailing list archive at Nabble.com.





More information about the rules-users mailing list