From f9e89af4de5210f9605d31bb808f8ef3ff23b648 Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Wed, 27 Nov 2024 15:48:39 +0100 Subject: [PATCH] Add hint --- .../ExecuteWorkflowTrigger.node.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/nodes-base/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.ts b/packages/nodes-base/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.ts index 8787528233..60c349a235 100644 --- a/packages/nodes-base/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.ts +++ b/packages/nodes-base/nodes/ExecuteWorkflowTrigger/ExecuteWorkflowTrigger.node.ts @@ -64,6 +64,16 @@ export class ExecuteWorkflowTrigger implements INodeType { }, inputs: [], outputs: [NodeConnectionType.Main], + hints: [ + { + message: + 'We strongly recommend defining your input fields explicitly. If no inputs are provided, all data from the calling workflow will be available, and issues will be more difficult to debug later on.', + // keys() on WORKFLOW_INPUTS contains `VALUES` if at least one value is provided + displayCondition: `={{ $parameter["${INPUT_SOURCE}"] === '${FIELDS}' && !$parameter["${WORKFLOW_INPUTS}"].keys().length }}`, // TODO json mode condition + whenToDisplay: 'always', + location: 'ndv', + }, + ], properties: [ { displayName: `When an ‘Execute Workflow’ node calls this workflow, the execution starts here.

@@ -90,7 +100,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi }, { displayName: 'Input Source', - name: 'inputSource', + name: INPUT_SOURCE, type: 'options', options: [ { @@ -136,7 +146,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi default: '', placeholder: 'e.g. fieldName', description: 'Name of the field', - noDataExpression: true, + // noDataExpression: true, }, { displayName: 'Type', @@ -200,7 +210,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi default: true, description: 'Whether to attempt conversion on type mismatch, rather than directly returning an Error', - noDataExpression: true, + // noDataExpression: true, }, { displayName: 'Ignore Type Mismatch Errors',