[rules-users] Sliding Length Windows

diana-mendes diana-mendes at hotmail.com
Mon Oct 31 05:51:34 EDT 2011


Hello,

Thank you for your response, I understand how the sliding window works now. 
However, when I use the code you wrote I get the following error:

Exception in thread "main" java.lang.RuntimeException: Unable to resolve
ObjectType 'List' : [Rule name='Rule2']

Unable to Analyse Expression $last2:
[Error: unable to resolve method using strict-mode:
java.lang.Object.$last2()]


My rule looks like this:

rule "Rule2"
	when
              $last2: List() from collect( Notif() over window:length(2) ) 
              $nNewONT : Number() from accumulate ( Notif( specificProblem
== "New ONT" ) from $last2, count() )
        then
              ...
end


Do Lists require any additional code?...

Thanks in advance,

Diana



--
View this message in context: http://drools.46999.n3.nabble.com/Sliding-Length-Windows-tp3438408p3467432.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list