id: version-0.68.0-org.apache.streampipes.processors.transformation.jvm.processor.state.buffer title: State Buffer sidebar_label: State Buffer original_id: org.apache.streampipes.processors.transformation.jvm.processor.state.buffer


Description

Buffers values of a sensor, while state does not change. Select a state field in the event. Events are buffered as long as state field does not change. When it changes result event is emitted.


Required input

Define the state and sensor value field

Timestamp

A mapping property for a timestamp field

State

Select the field representing the state

Sensor value to cache

Select the field with the numerical values to buffer

Output

Emits a new event on state change, with the fields timestamp, state, and a list containing all sensor values.