Event queue in NonPeriodic Activity

Hi,

i use event ports in a non periodic activity for receiving data. Each time the data is available the updateHook is called and data will be performed, but it takes time, so in between the new events are arriving and will be put in the task event queue.

After updateHook call is done, the events in the queue will not evaluate automatically (NonPeriodicActivity !) and still remains in the queue, the task waits for the new event.

The question is, how can i delete all events in the tasks queue after updateHook is done ? (I don't really need the data that i can't evaluate in time.)

cheers, -vitali

Event queue in NonPeriodic Activity

Hi,

i use event ports in a non periodic activity
for receiving data. Each time the data is available
the updateHook is called and data will be performed,
but it takes time, so in between the new events are
arriving and will be put in the task event queue.

After updateHook call is done, the events in the queue
will not evaluate automatically (NonPeriodicActivity !)
and still remains in the queue, the task waits for the new event.

The question is, how can i delete all events in the tasks queue
after updateHook is done ? (I don't really need the data that i
can't evaluate in time.)

cheers,
-vitali