メインコンテンツまでスキップ

Flow output node

The Flow output node lets you define named outputs within a subflow so that the parent flow can use that data in downstream nodes. Without Flow output nodes, the subflow has no output data for the parent apart from an executionId; with them, you explicitly expose specific fields (for example, a list of instance IDs or a summary count) that the parent can reference in filters, transforms, notifications, or other nodes. For example, a subflow might list EC2 instances in a region and expose an instanceIds output; the parent flow then uses that list in a Notification node to send a summary to your team.

注意

Flow output nodes are only available in flows that are used as subflows. They have no effect when the flow runs on its own (for example, via its own trigger or a manual run).

Define outputs in the subflow

  1. Open the subflow in the CloudFlow editor.

  2. Add a Flow output node to the subflow. Place it after the nodes whose data you want to expose. The output can reference fields from any upstream node in the subflow.

  3. Edit the Flow output node and add one or more output parameters. For each output, set a name (for example, instanceIds or summary) and the field to expose — the field from an upstream node in the subflow.

  4. Save the subflow and publish it so the parent flow can use the new outputs.

Subflow editor with Flow output node and Flow output parameters tab showing name and field

ヒント

Use clear, descriptive output names so that when you reference them in the parent flow, the intent is obvious. You can add multiple Flow output nodes or multiple output parameters to expose different fields.

Use outputs in the parent flow

  1. In the parent flow, add or select the Sub Flow node that calls this subflow. Configure Flow to call and any execution parameters as needed.

  2. In downstream nodes (for example, Filter, Transform, or Notification), reference the subflow's outputs via the plus icon (+) or field picker. The outputs appear under the Sub Flow node's output (for example, under the subflow's name or step number). Select the named output you defined (for example, instanceIds or summary) to pass that data into the current node.

Parent flow with Sub Flow node selected and downstream node showing subflow output in field picker

Example: Subflow exposes instance list

A subflow uses an AWS node to describe EC2 instances in a given region and a Transform node to extract the instance IDs. A Flow output node exposes an output named instances (the list of instance IDs). The parent flow uses a Sub Flow node to call this subflow, then a Notification node that references the Sub Flow node's instances output to send the list to Slack or email. The parent flow stays simple while the subflow encapsulates the logic of fetching and shaping the data.

Test

Select Test to test the node.

See also