[rules-users] Accumulate function, events and stream processing

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jan 31 06:01:45 EST 2012


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 <juankera at gmail.com> 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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list