[rules-users] is there any 'followed by' in Drools as we have in esper

Mark Proctor mproctor at codehaus.org
Wed Apr 11 08:06:04 EDT 2012


On 11/04/2012 08:05, skatta1986 wrote:
> Hi,
>
> Please any one let me know if there is any followed by operator in Drools. I
> want to correlate an event with another event which follows the first event.
>
> Esper supports this by using followed by (->) operator.
> Example in esper:
> "select  r1.name as name,r1.userIPAddress as ipaddress,count(*) as
> usr_success_count, (r2.getTimeStamp()-r1.getTimeStamp()) as delta_time from
> pattern" +
> "[ (every r1=EventRecord(eventNumber=105, eventType='EVENT_REQUEST'))->  " +
> "(r2=EventRecord(eventNumber=110, eventType='EVENT_SUCCES',
> id.getCallId()=r1.getId(), name=r1.name)) where
> timer:within(usr_timeout_interval sec)]";
>
> Can you please providesimilar kind of rule in Drools.
We will be adding followed by operators in our 5.5 release.

Mark
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/is-there-any-followed-by-in-Drools-as-we-have-in-esper-tp3901764p3901764.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list