executeWorkflow.json•5.63 kB
{
"nodeType": "n8n-nodes-base.executeWorkflow",
"displayName": "Execute Sub-workflow",
"description": "Execute another workflow",
"version": [
1,
1.1,
1.2
],
"properties": [
{
"name": "operation",
"displayName": "Operation",
"type": "hidden",
"default": "call_workflow",
"options": [
{
"name": "Execute a Sub-Workflow",
"value": "call_workflow"
}
]
},
{
"name": "outdatedVersionWarning",
"displayName": "This node is out of date. Please upgrade by removing it and adding a new one",
"type": "notice",
"default": "",
"displayOptions": "{ show: { '@version': [{ _cnd: { lte: 1.1 }"
},
{
"name": "source",
"displayName": "Source",
"type": "options",
"default": "database",
"description": "Load the workflow from the database by ID",
"options": [
{
"name": "Database",
"value": "database",
"description": "Load the workflow from the database by ID"
},
{
"name": "Local File",
"value": "localFile",
"description": "Load the workflow from a locally saved file"
},
{
"name": "Parameter",
"value": "parameter",
"description": "Load the workflow from a parameter"
},
{
"name": "URL",
"value": "url",
"description": "Load the workflow from an URL"
}
],
"displayOptions": "{ show: { '@version': [{ _cnd: { lte: 1.1 }"
},
{
"name": "workflowId",
"displayName": "Workflow ID",
"type": "string",
"default": "",
"description": "Note on using an expression here: if this node is set to run once with all items, they will all be sent to the <em>same</em> workflow. That workflow's ID will be calculated by evaluating the expression for the <strong>first input item</strong>.",
"required": true,
"displayOptions": {
"show": {
"source": [
"database"
],
"@version": [
1
]
}
}
},
{
"name": "workflowPath",
"displayName": "Workflow Path",
"type": "string",
"default": "",
"description": "The path to local JSON workflow file to execute",
"placeholder": "/data/workflow.json",
"required": true,
"displayOptions": {
"show": {
"source": [
"localFile"
]
}
}
},
{
"name": "workflowJson",
"displayName": "Workflow JSON",
"type": "json",
"default": "\\n\\n\\n",
"description": "The workflow JSON code to execute",
"required": true,
"typeOptions": {
"rows": 10
},
"displayOptions": {
"show": {
"source": [
"parameter"
]
}
}
},
{
"name": "workflowUrl",
"displayName": "Workflow URL",
"type": "string",
"default": "",
"description": "The URL from which to load the workflow from",
"placeholder": "https://example.com/workflow.json",
"required": true,
"displayOptions": {
"show": {
"source": [
"url"
]
}
}
},
{
"name": "executeWorkflowNotice",
"displayName": "Any data you pass into this node will be output by the Execute Workflow Trigger. <a href=\"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/\" target=\"_blank\">More info</a>",
"type": "notice",
"default": "",
"displayOptions": "{ show: { '@version': [{ _cnd: { lte: 1.1 }"
},
{
"name": "workflowInputs",
"displayName": "Workflow Inputs",
"type": "resourceMapper",
"default": "{\n\t\t\t\t\tmappingMode: 'defineBelow',\n\t\t\t\t\tvalue: null,\n\t\t\t\t}",
"required": true,
"displayOptions": "{\n\t\t\t\t\tshow: {\n\t\t\t\t\t\tsource: ['database'],\n\t\t\t\t\t\t'@version': [{ _cnd: { gte: 1.2 }"
},
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "once",
"description": "Pass all items into a single execution of the sub-workflow",
"options": [
{
"name": "Run once with all items",
"value": "once",
"description": "Pass all items into a single execution of the sub-workflow"
},
{
"name": "Run once for each item",
"value": "each",
"description": "Call the sub-workflow individually for each item"
}
]
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding",
"placeholder": "Add option",
"options": [
{
"name": "waitForSubWorkflow",
"displayName": "Wait For Sub-Workflow Completion",
"type": "boolean",
"default": true,
"description": "Whether the main workflow should wait for the sub-workflow to complete its execution before proceeding"
}
]
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}