If count() returns 0 then you don't have any matching StateEvent facts
in Working Memory.

- Do you enter via an entry point?

- Does a rule using
      StateEvent(itemName=="Temperatura")
  fire?

-W

On 31/01/2012, juankera <[email protected]> wrote:
> Thanks for your help.
>
> This sentence is working properly (i've tried it out of this rule) and
> count(1) doesn't give me anything.
>
> when
>       Number( $total : doubleValue ) from accumulate(
>         StateEvent(itemName=="Temperatura", $val : newState) over
> window:length( 5 ),
>         count ( 1 ))
> then
>
> Always returning 0.0, with every fact i put in the working memory.
>
> Any idea?
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Accumulate-function-events-and-stream-processing-tp3700577p3702702.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to