Organizations and data
Customize executions data in Duaer
In Duaer, add custom data to your executions with the Code node or the Execution Data node. You can then filter executions by this data.
Custom data is stored on this execution. It is not the json passed between nodes. Filtering the executions list by custom data requires a plan that includes the feature.
Set and access custom data using the Code node
This section uses the Code node. You can also write values with the Execution Data node; that node cannot retrieve them.
Set a single piece of extra data:
$execution.customData.set("key", "value");Set all extra data. This overwrites the whole custom data object for this execution:
$execution.customData.setAll({"key1": "value1", "key2": "value2"});Limits:
- Keys and values must be strings.
- A key has a maximum length of 50 characters.
- A value has a maximum length of 255 characters.
- Duaer supports a maximum of 10 custom data items.
Access the object during the same execution:
const all = $execution.customData.getAll();
const one = $execution.customData.get("key");Python
A Python Code node uses _execution.customData with the same methods:
_execution.customData.set("key", "value")
_execution.customData.setAll({"key1": "value1", "key2": "value2"})
all_data = _execution.customData.getAll()
one = _execution.customData.get("key")Write it with the Execution Data node
If you would rather not write code, use the Execution Data node. Fill in keys and values. When the run reaches that node, they are stored on the current execution. To read them later in code, use get or getAll as above.
Questions
Where is custom execution data stored, and what is it for?
In Duaer, it is stored on that execution as keys and values so you can filter the executions list later. It is not the json passed between nodes. Filtering requires a plan that includes the feature.
How do you write it from a Code node?
In Duaer, use $execution.customData.set for one key, or setAll to replace the whole object. Values must be strings; keys max 50 characters, values max 255, at most 10 items. Python uses _execution.customData.
In this section
Redact execution data in Duaer
In Duaer, control the visibility of execution data to protect sensitive information and meet compliance requirements.
DataUnderstand Duaer’s data structure
Understanding how Duaer structures and passes data between nodes is fundamental to building workflows. This guide covers the data structure format and how data flows.
CanvasWork with nodes in Duaer
In Duaer, a node is an entry point for retrieving data, a function to process data, or an exit for sending data.