Inject

Injects any value into a flow.

Use

The Inject node writes a defined value into the msg.payload or another message property of a flow. Multiple inject nodes can be set up in parallel and connected to one node. 

Properties

AttributeValuesRemarks
Nameany stringEnter a self-explaining name of the node. If you leave this field empty, the generic name displays in the dashboard.
Propertymsg.payloadThis is the default. Injections are always in the local context (msg.). You can add more properties if needed and if you want to handle these in the flow.
Value type/Valueselect value type
  • msg.: Value can be any local property name.
  • flow.: Value can be any flow property name.
  • global.: Value can be any global property name.
  • string: Value can be any any string value.
  • number: Value can be any number value.
  • boolean: Value can be true or false.
  • JSON: Value can be any JSON object.
  • buffer: Injects a buffer.
  • timestamp: No value. The timestamp is set automatically.
  • expression: Enter a JSONata expression to query data.
  • env variable: Enter an environment variable.
Inject once after x seconds, thentrue|false,
delay time

If true, the value is injected into the flow after the defined delay.

If false, the value is injected without delay into the flow.

Repeatnone|interval|interval between times|at a specific time

Repeat value injection after the initial injection:

  • none: The value is injected once (no repeat).
  • interval: every x seconds|minutes|hours.
  • interval between times: cron expression.
  • at a specific time: at a defined date/time.

Example

Exception handling

Debug

Displays selected message properties in the debug sidebar tab and optionally the runtime log.

Usage

By default, the Debug node  displays the msg.payload . The node can be configured to display any other msg.property, the full message or the result of a JSONata expression.

Properties

AttributeValuesRemarks
Outputselect from drop-down
  • msg.property: Select the property to be output. Default is payload.
  • complete msg object: Writes all msg properties in the output.
  • expression: Enter a JSONata expression to query data.
To
  • debug window
  • system console
  • node status (32 characters)
Select the desired output options.
Nameany stringEnter a self-explaining name of the node. If you leave this field empty, the generic name displays in the dashboard.

Example

Exception handling

Catch

Catches errors that are thrown from nodes in the same flow (tab).

Use

Use this node to implement error and exception handling.

Properties

AttributeValuesRemarks
Catch errors fromselected nodes|all nodes

For a more fine-grained error handling, select only specific nodes and implement several Catch nodes.

Select nodes

Select from list

Select the desired nodes from the flow.
Nameany stringEnter a self-explaining name of the node. If you leave this field empty, the generic name displays in the dashboard.

Example

Exception handling

Comment

Use this node to add comments to your flows.