Compose flow-node

The Compose flow-node methods, parameters, and outputs are described in the following sections. The Compose flow-node is created when NPM installs the nodehandler-dot code. The Compose flow-node is included in the default application, but it can be removed.

Methods

The default methods for a Compose flow-node are:

Parameters

The Compose flow-node parameters are described in the following sections.

Format object parameters

The Format object method parameters are:

Parameter Type Description Configuration selection

data

object The data to evaluate the template with. Use $ to access the entire context. Selector, Object

template

string The doT template. Selector, String

Format string parameters

The Format string method parameters are:

Parameter Type Description Configuration selection
data object The data to evaluate the template with. Use $ to access the entire context. Selector, Object
template string The doT template. Selector, String

Outputs

The Compose flow-node outputs are described in the following sections.

Format object outputs

The Format object method outputs are:

Output Type Description Save output value as:

Next

any -

$.value

Error

any This output is triggered if the evaluated template is not a valid JSON string. The output value is the error object.

$.error

Format string outputs

The Format string method outputs are:

Output Type Description Save output value as:

Next

any -

$.value

Error

any This output is triggered if the evaluated template is not valid. The output value is error object.

$.error

Related Links