Thanks again Nicholas!
I did make my own little sample on that, had to check the trunk to get the
newer docs... but
yes, it appears to help my cause.
One more question - if i have to pick up Drools Rules Language and start
writing Event processing Rules, where would be good place to start ?
considering that i have very little (or no) knowledge of Rule Engines in
general? I find my self restricted, in the sense i cant express my
requirments with my limited understanding in defining Rules.
thanks again!
Rishi
Nicolas Héron wrote:
Hello
You can set any attribute as the time clock
You have to add an annotation
It is in the fusion doc
Sorry for my late answer but I am on holidays :)
Regards
Nicolas
2009/4/27 cyphr <hrishikesh.varma(a)wipro.com>
>
> 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(a)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--tp23170278...
> >> Sent from the drools - user mailing list archive at
Nabble.com.
> >>
> >> _______________________________________________
> >> rules-users mailing list
> >> rules-users(a)lists.jboss.org
> >>
https://lists.jboss.org/mailman/listinfo/rules-users
> >>
> >
> > _______________________________________________
> > rules-users mailing list
> > rules-users(a)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--tp23170278...
> Sent from the drools - user mailing list archive at
Nabble.com.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users