[rules-users] lua

Wolfgang Laun wolfgang.laun at gmail.com
Tue Mar 19 02:35:35 EDT 2013


Your statement that...

On 19/03/2013, jigna <jigna.chhajed at igate.com> wrote:
> When I write in folloiwng way it doesnot give compilation error, however
> time window is individually applied to each one of this. which doesnot
> satisfy the requirement which is to ensure that both these( or more no of)
> patterns have occured in specified time window.

...the rule given below does not fire when there is one
ErrorPatternData of each kind within an interval of 7m is surprising.
Can you describe this more precisely and/or confirm this with a
complete, runnable demo?

Possibly you expect that some other condition is to be detected. Using
"exists" may have unexpected consequences.

-W
>
> rule "Fault"
> when
>          exists(
>                 ErrorPatternData
>                 (
>                         (errorCode(=="1200007" || =="1190002" || =="1944"
> ||
> =="2a23"))
>                 ) over window:time(7m)
> 	   from entry-point ErrorEntryPoint
>                 &&
>                 ErrorPatternData
>                 (
>                         (errorCode == "76004101")
>                 ) over window:time(7m)
> 	   from entry-point ErrorEntryPoint
>                 )
> then
>                 System.out.println("Fault - Rule-Has Passed");
> end
>


More information about the rules-users mailing list