Skip to content

Commit a8fd1e2

Browse files
authored
Doc 1279 execute workflow (n8n-io#2817)
1 parent 90e4c1f commit a8fd1e2

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
As an example, imagine you have an Execute Workflow node in **Workflow A**. The Execute Workflow node calls another workflow called **Workflow B**:
1+
As an example, imagine you have an Execute Sub-workflow node in **Workflow A**. The Execute Sub-workflow node calls another workflow called **Workflow B**:
22

3-
1. The Execute Workflow node passes the data to the Execute Workflow Trigger node of **Workflow B**.
4-
2. The last node of **Workflow B** sends the data back to the Execute Workflow node in **Workflow A**.
3+
1. The Execute Sub-workflow node passes the data to the Execute Sub-workflow Trigger node (titled "When executed by another node" in the canvas) of **Workflow B**.
4+
2. The last node of **Workflow B** sends the data back to the Execute Sub-workflow node in **Workflow A**.

_snippets/flow-logic/subworkflow-usage.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
1. Create a new workflow.
55

66
/// note | Create sub-workflows from existing workflows
7-
You can optionally create a sub-workflow directly from an existing parent workflow using the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) node. In the node, select the **Database** and **From list** options and select **Create a sub-workflow** in the list.
7+
You can optionally create a sub-workflow directly from an existing parent workflow using the [Execute Sub-workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) node. In the node, select the **Database** and **From list** options and select **Create a sub-workflow** in the list.
88
///
99

1010
1. **Optional**: configure which workflows can call the sub-workflow:
1111
1. Select the **Options** <span class="inline-image">![Options menu](/_images/common-icons/three-dot-options-menu.png){.off-glb}</span> menu > **Settings**. n8n opens the **Workflow settings** modal.
1212
1. Change the **This workflow can be called by** setting. Refer to [Workflow settings](/workflows/settings/) for more information on configuring your workflows.
13-
1. Add the **Execute Workflow Trigger** node.
13+
1. Add the **Execute Sub-workflow** trigger node (if you are searching under trigger nodes, this is also titled **When Executed by Another Workflow**).
1414
1. Set the **Input data mode** to choose how you will define the sub-workflow's input data:
1515
* **Define using fields below**: Choose this mode to define individual input names and data types that the calling workflow needs to provide.
1616
* **Define using JSON example**: Choose this mode to provide an example JSON object that demonstrates the expected input items and their types.
@@ -26,7 +26,7 @@ This requires the ability to [load data from previous executions](/workflows/exe
2626

2727
If you want to load data into your sub-workflow to use while building it:
2828

29-
1. Create the sub-workflow and add the **Execute Workflow Trigger**.
29+
1. Create the sub-workflow and add the **Execute Sub-workflow Trigger**.
3030
1. Set the node's **Input data mode** to **Accept all data** or define the input items using fields or JSON if they're already known.
3131
1. In the sub-workflow [settings](/workflows/settings/), set **Save successful production executions** to **Save**.
3232
1. Skip ahead to setting up the parent workflow, and run it.
@@ -40,8 +40,8 @@ You can now pin example data in the trigger node, enabling you to work with real
4040
### Call the sub-workflow
4141

4242
1. Open the workflow where you want to call the sub-workflow.
43-
1. Add the **Execute Workflow** node.
44-
1. In the **Execute Workflow** node, set the sub-workflow you want to call. You can choose to call the workflow by ID, load a workflow from a local file, add workflow JSON as a parameter in the node, or target a workflow by URL.
43+
1. Add the **Execute Sub-workflow** node.
44+
1. In the **Execute Sub-workflow** node, set the sub-workflow you want to call. You can choose to call the workflow by ID, load a workflow from a local file, add workflow JSON as a parameter in the node, or target a workflow by URL.
4545

4646
/// note | Find your workflow ID
4747
Your sub-workflow's ID is the alphanumeric string at the end of its URL.
@@ -52,4 +52,4 @@ You can now pin example data in the trigger node, enabling you to work with real
5252

5353
When your workflow executes, it will send data to the sub-workflow, and run it.
5454

55-
You can follow the execution flow from the parent workflow to the sub-workflow by opening the Execute Workflow node and selecting the **View sub-execution** link. Likewise, the sub-workflow's execution contains a link back to the parent workflow's execution to navigate in the other direction.
55+
You can follow the execution flow from the parent workflow to the sub-workflow by opening the Execute Sub-workflow node and selecting the **View sub-execution** link. Likewise, the sub-workflow's execution contains a link back to the parent workflow's execution to navigate in the other direction.

_snippets/integrations/builtin/cluster-nodes/langchain-sub-nodes/workflow-values.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ Set values to pass to the workflow you're calling.
33
These values appear in the output data of the trigger node in the workflow you call. You can access these values in expressions in the workflow. For example, if you have:
44

55
* **Workflow Values** with a **Name** of `myCustomValue`
6-
* A workflow with an Execute Workflow Trigger node as its trigger
6+
* A workflow with an Execute Sub-workflow Trigger node as its trigger
77

8-
The expression to access the value of `myCustomValue` is `{{ $('Execute Workflow Trigger').item.json.myCustomValue }}`.
8+
The expression to access the value of `myCustomValue` is `{{ $('Execute Sub-workflow Trigger').item.json.myCustomValue }}`.

docs/courses/level-one/chapter-5/chapter-5.8.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Access these settings by selecting the three dots in the upper right corner of t
4545
In the **Workflow Settings** window you can configure the following settings:
4646

4747
- [**Error Workflow**](/flow-logic/error-handling/): A workflow to run in case the execution of the current workflow fails.
48-
- **This workflow can be called by**: Workflows that are allowed to call this workflow using the [Execute Workflow node](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/).
48+
- **This workflow can be called by**: Workflows that are allowed to call this workflow using the [Execute Sub-workflow node](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/).
4949
- **Timezone**: The timezone to use in the current workflow. If not set, the global timezone (by default "New York") is used. This setting is particularly important for the [Schedule Trigger node](/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger/), as you want to make sure that the workflow gets executed at the right time.
5050
- **Save failed production executions**: If the Execution data of the workflow should be saved when it fails. Default is to save.
5151
- **Save successful production executions**: If the Execution data of the workflow should be saved when it succeeds. Default is to save.

docs/flow-logic/subworkflows.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Call workflows from other workflows, and split large workflows into
66

77
# Sub-workflows
88

9-
You can call one workflow from another workflow. This allows you to build modular, microservice-like workflows. It can also help if your workflow grows large enough to encounter [memory issues](/hosting/scaling/memory-errors/). Creating sub-workflows uses the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) and [Execute Workflow Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger/) nodes.
9+
You can call one workflow from another workflow. This allows you to build modular, microservice-like workflows. It can also help if your workflow grows large enough to encounter [memory issues](/hosting/scaling/memory-errors/). Creating sub-workflows uses the [Execute Workflow](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) and [Execute Sub-workflow Trigger](/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger/) nodes.
1010

1111
## Set up and use a sub-workflow
1212

docs/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
3-
title: Execute Workflow
4-
description: Documentation for the Execute Workflow node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
3+
title: Execute Sub-workflow
4+
description: Documentation for the Execute Sub-workflow node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
55
contentType: [integration, reference]
66
priority: high
77
---
88

9-
# Execute Workflow
9+
# Execute Sub-workflow
1010

11-
Use the Execute Workflow node to run a different workflow on the host machine that runs n8n.
11+
Use the Execute Sub-workflow node to run a different workflow on the host machine that runs n8n.
1212

1313
## Node parameters
1414

docs/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
3-
title: Execute Workflow Trigger node documentation
4-
description: Learn how to use the Execute Workflow Trigger node in n8n. Follow technical documentation to integrate Execute Workflow Trigger node into your workflows.
3+
title: Execute Sub-workflow Trigger node documentation
4+
description: Learn how to use the Execute Sub-workflow Trigger node in n8n. Follow technical documentation to integrate Execute Sub-workflow Trigger node into your workflows.
55
contentType: [integration, reference]
66
priority: high
77
---
88

9-
# Execute Workflow Trigger node
9+
# Execute Sub-workflow Trigger node
1010

1111
Use this node to start a workflow in response to another workflow. It should be the first node in the workflow.
1212

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ nav:
389389
- Execute Command: integrations/builtin/core-nodes/n8n-nodes-base.executecommand/index.md
390390
- Common issues: integrations/builtin/core-nodes/n8n-nodes-base.executecommand/common-issues.md
391391
- integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow.md
392-
- Execute Workflow Trigger: integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger.md
392+
- Execute Sub-workflow Trigger: integrations/builtin/core-nodes/n8n-nodes-base.executeworkflowtrigger.md
393393
- integrations/builtin/core-nodes/n8n-nodes-base.executiondata.md
394394
- integrations/builtin/core-nodes/n8n-nodes-base.extractfromfile.md
395395
- integrations/builtin/core-nodes/n8n-nodes-base.filter.md

0 commit comments

Comments
 (0)