You add
over window:time( 1h )
to the end of a pattern.
See the "Fusion" manual.
-W
On 18/03/2013, jigna <jigna.chhajed(a)igate.com> wrote:
Is it possible to use sliding window with 'exists'
conditional element?
I need to write if pattern existing has ocuured in last one hour, how
should
this be written?
For eg. following is the pattern with 'exists' CE which I need to check if
has occured in last one hr.
rule "Fault"
when
exists(
ErrorPatternData
(
(errorCode(=="1200007" || =="1190002" || =="1944" ||
=="2a23"))
)from entry-point ErrorEntryPoint
&&
ErrorPatternData
(
(errorCode == "76004101")
)from entry-point ErrorEntryPoint
)
then
System.out.println("Fault - Rule-Has Passed");
end
--
View this message in context:
http://drools.46999.n3.nabble.com/lua-tp4022851.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users