Skip to content

Action Nodes

With this node type, data sources are intended to perform operations on sources that do not require the retrieval of data. Action nodes do not use data sinks.

Tip

Action notes are convenient to use when creating database schemas and executing scheduled stored procedures.

Action node files

description.json

Note

Node type code: the value for the action node type is DKNode_action.

This system file sets the node type and provides a description field used to describe a node's purpose. The file is not used for other purposes; other entries are ignored.

{
    "type": "DKNode_Action",
    "description": "[YOUR DESCRIPTION HERE]"
}

notebook.json

The notebook.json system file is optional for action nodes.

Any tests defined for an action node should be added to the source JSON file instead. The system saves tests to that location automatically.

Data source actions

Each action node also contains an /actions subdirectory that contains the data source configuration file.

The configuration file includes the source connection information, the keys defining all steps of the node's process, and any tests defined in the node.

Tip

Build node recovery into scripts. A best practice for writing scripts is to include commands to recover from a failed node. For example, a script should always run a DROP TABLE IF EXISTS command before creating a table. The goal is to be able to re-run a node without having to recover manually.