Skip to main content

The inject node

Use the inject node to create messages manually and send them into the flow. It is one of the key tools for testing.


inject node settings​

"Node Information" window of the inject node: "Name" set to "start process"

1. Name​

The node name.
It appears in the workspace and helps you identify the node.
If you leave it empty, the node is named inject.

Example:

  • Node name: start process

Input​

The inject node does not accept incoming messages because it generates messages for the flow itself.


Output​

The inject node sends msg.payload with a timestamp.


Usage examples​

Example 1: Test run of a flow​

Flow:

[inject] ---> [function] ---> [debug]

Result: The node sends a test message into the flow.