[rules-users] Sliding Length Windows

Edson Tirelli ed.tirelli at gmail.com
Mon Oct 31 09:53:58 EDT 2011


   import java.util.List

   Edson

2011/10/31 diana-mendes <diana-mendes at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111031/e2c80912/attachment.html 


More information about the rules-users mailing list