Skip to main content
Version: Current

UnionMemo

Mode: Streaming

Description​

Similarly to Union, UnionMemo node merges branches into one branch. Events are emitted on every incoming event and event time is inherited from the incoming event.

There are however important differences in the way UnionMemo works:

  • events from the incoming branches are merged together based on a common key value
  • data that arrived from any of the incoming branches will be memoized by the UnionMemo node for time duration defined in State timeout. If new event arrives before State timeout, the State timeout timer is reset
  • #input variable is no longer available downstream the UnionMemo node

Parameters and configuration​

NameDescription
KeyExpression, which is used to match events from the incoming branches. The key can be of any type, but all branches must use the same key type. Events whose key is null are reported as errors and not emitted.
ValueThe result of this expression is put in a field of the output variable named after the node the branch comes from, with every character that cannot appear in an identifier replaced by _.
State timeoutDefines for how long events are memoized. Must be a positive duration.
Output variable nameThis variable will hold result of the UnionMemo node

The output variable will contain the following json object.

{
"key": "value of key expression for given event",
"branch1_name": "value of output expression if memoized, otherwise null",
"branch2_name": "value of output expression if memoized, otherwise null",
"branchN_name": "value of output expression if memoized, otherwise null"
}