DictionaryGet Node
The DictionaryGet Node
gets a key
to the Input Port
, looks up for the key
in the Dictionary Collection
, receives a value
for the key
, and sends the value
to the Output Port
.
The DictionaryGet Node
has the following Input Ports
:
key
Input Port
(named by default) gets the name of the key, ex."key" = "ID1"
.
The value
for the key
is represented by an arbitrary number of elements
, objects
, arrays
of JSON structure.
This means that the elements
may be requested by the query
to the element
in the JSON structure.
If the requested element
is absent then the DictionaryGet Node
will returnes a Null
value to the Output Port
.
The DictionaryGet Node
allows to add Output Ports
to request any specified elements
, objects
or arrays
collected for the key
.
The DictionaryGet Node
performs a look up in the Collection and returns the value
to the Output Port
(unnamed by default):
query
Output Port
(unnamed by default) returnes thevalue
for the specifiedelement
,object
orarray
in the JSON structure, ex. for theobject
->A
returnes thevalue
-> {"ts": 1000000000, "key": "A", "value": 1}`.
The DictionaryGet Node
has the following Configuration Parameters
:
Collection Name
to address the Dictionary.
In the example above the the DictionaryGet Node
requests the ABCD
Collection for the "key" : "ID1"
and receives the following “values”
for the specified "keys"
:
- for the
object
A
returnes the value{"ts": 1000000000, "key": "A", "value": 1}
; - for the
number
B
returnes the value3.14
; - for the
integer
C
returnes the value42
; - for the
boolean
D
returnes the valueTrue
; - for the
string
E
returnes the valueHello, World!
; - for the
array
F
returnes the value[1, 2, 3, 4, 5]
.