`processing: - branch: processors: ...
# general
k
Copy code
processing:
  - branch:
        processors:
          - cache:
              key: ${! meta("umh_topic") }
              operator: get
              resource: last_state
        result_map: root.last_state = this

    - cache:
        key: ${! meta("umh_topic") }
        operator: set
        resource: last_state
        value: ${! json("state") }
With this you could cache the entries, and based on the umh_topic return either null or the aggregation 🙂
2 Views