import java.util.List Edson
2011/10/31 diana-mendes <diana-men...@hotmail.com> > 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. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > -- Edson Tirelli JBoss Drools Core Development JBoss by Red Hat @ www.jboss.com
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users