Skip to main content

Set Output

Controlled node

Overview

The Set Output node defines named outputs for your workflow. When triggered, it assigns a value to a specific output name, making that data available as a result of the workflow execution. This is essential for creating reusable workflows that return specific data to calling workflows or to the system.

Inputs

InputTypeDescriptionDefault
SetEventTriggers the node to set the output value.-
NameTextThe name of the output variable. This identifies the output data when the workflow completes.-
ValueDataThe data to assign to the named output. Can be any type (text, numbers, objects, lists, etc.).-

Outputs

OutputTypeDescription
DoneEventFires when the output value has been successfully set.

Runtime Behavior and Defaults

The Set Output node is a controlled node, meaning it only executes when triggered by an event (typically connected to the done event of another node or a workflow completion event).

During initialization, the node establishes a connection between its internal value output and the workflow's output system using the name specified in the Name input. When the Set event fires, the node captures the current value from the Value input and makes it available as a workflow output under the specified name.

If the Name input is empty or undefined, the node will not set any output and will simply fire the Done event without action.

Example

Basic Usage

Connect a Start node to a Text node, then to Set Output to return a simple greeting:

  1. Start node → fires fired event
  2. Text node (with content "Hello World") → outputs text
  3. Set Output node:
    • Set ← connected to Text node's completion event
    • Name ← "greeting" (or connected to a Text node with "greeting")
    • Value ← connected to Text node's output

When the workflow runs, it will output a variable named greeting with the value "Hello World".

Multiple Outputs

You can use multiple Set Output nodes to return several named values from a single workflow:

  • Set Output 1: Name="userId", Value←[User ID from database]
  • Set Output 2: Name="status", Value←"success"
  • Set Output 3: Name="data", Value←[Processed data object]

All three values will be available as named outputs when the workflow completes.