[rules-users] lua

jigna jigna.chhajed at igate.com
Mon Mar 18 05:55:40 EDT 2013


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.


More information about the rules-users mailing list