Store Context


The Store Context node stores the specified data using key-value pairs within the specified scope, which can be retrieved using the Read Context node.

Node Type

Action.

Input and Output Ability

This node has multiple entry points and multiple exit points. If the input msg contains custom expressions, both the input and output must be JSON. For more information on expressions, see Expressions.

Node Properties

../../_images/store_context.png


Name

The name for this node.


Scope

The scope of where the data is stored. Available options are as per the below.

  • Flow: Data stored can only be accessed within the same flow where this node belongs.
  • Global: Data stored can be accessed by all flows within the same OU.


TTL (s)

The time the data is stored for in seconds. Once the specified time has elapsed, the data can no longer be retrieved.


Key and Value

The data to be stored represented by key-value pairs. The data of both Key and Value will be stored with a String data type by default, unless expressions such as ${msg.id} are used.


Add to Stored Value

If the key has been stored before, and is of double data type, check this checkbox to add the new value to the stored value. If unchecked, the stored value will be overwritten.


You can add more or delete key-value pairs by clicking + Add or the Delete icon respectively. If the chosen Scope above is Global, clicking the lets you view a list of all the stored data available and select data from there if so desired.


Description

The description for this node.

Limitations

  • Maximum node entry points: 100

Samples

Input Sample

{
   "device_id_no":"device001",
   "time":"1614420000000",
   "measurepoints": {
      "converter001":"200"
    }
}

Output Sample

The output message will be the same as the input message.