Hi all,<br>i am going to use a custom accumulate function like that:<br><br>rule &quot;CrowdInAreaEvent-event&quot;<br>    no-loop<br>    when<br>        $RFIDReader : SensorFixed(type == Sensor.SENSOR_TYPE_RFID, $coverageArea : areaOfInterest )<br>
        not CrowdInAreaEvent( sensor == $RFIDReader, this meets[ 5s ] $obs )<br>        $count : Integer( intValue &gt; 10 ) <br>            from accumulate(<span style="color:rgb(255,0,0)"> $obs : </span>RFIDObservation( $tagid : tagid, sensor == $RFIDReader ) <br>
            over window:time( 60s ) from entry-point lowLevelSensorStream, countDistinct( $tagid ) );<br>    then<br>        insert( SituationManager.createCrowdInAreaEvent( &quot;Crowd, number people: &quot; + $count, Event.THREAT_LOW, $coverageArea, $RFIDReader, $count, 60, 10 ) );<br>
end<br><br>I need to refer $obs object in order to compare timing of new observation with last event. Is it possible to do that?<br><br>Thanks a lot,<br>Matteo.<br>