[rules-users] CEP fusion
Edson Tirelli
ed.tirelli at gmail.com
Thu Dec 3 19:40:00 EST 2009
Are you running your application in STREAM mode or CLOUD mode? Delaying
"not" is a feature of the STREAM mode. If you are already running in STREAM
mode, can you give me an isolated test that I can check?
Thanks
Edson
2009/12/3 chris richmond <richmond.cd at gmail.com>
> Hello,
>
> I have this test rule that basically fires if a followup reading is not
> received with the appropriate value within some time. According to the
> fusion docs, simply using:
>
> *not*( FollowUpReading(value == $val, *this* before[0s,5s] $reading ) )
>
> should wait 5 seconds before firing, however this does not work unless I
> explicitly also set:
>
> *duration*( 5s )
>
> and if I do that, it seems to wait the 5 seconds, however it always follows
> what I put in the duration value and seems to compeltely ignore the time
> tolerances I use here.:
>
> $reading : DatarReading($val: value)
>
> *not*( FollowUpReading(value == $val, *this* before[0s,5s] $reading ) )
> And if I have different values, it will fire the rule after 2 seconds and
> ignore the 5s in the sample below.
>
> Any ideas?
> *
>
> rule
> * "my rule"
>
> *duration*( 2s )
>
> *when*
>
> $reading : DatarReading($val: value)
>
> *not*( FollowUpReading(value == $val, *this* before[0s,5s] $reading ) )
>
> *then*
>
> System.err.println(
> "did not receive follow up - reading value: " + $val);
>
> *
>
> end
>
>
>
>
> *
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091203/7384cbbb/attachment.html
More information about the rules-users
mailing list