This commit is contained in:
Charlie Kolb 2024-11-27 15:48:39 +01:00
parent c2688c1209
commit f9e89af4de
No known key found for this signature in database

View file

@ -64,6 +64,16 @@ export class ExecuteWorkflowTrigger implements INodeType {
}, },
inputs: [], inputs: [],
outputs: [NodeConnectionType.Main], 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: [ properties: [
{ {
displayName: `When an Execute Workflow node calls this workflow, the execution starts here.<br><br> displayName: `When an Execute Workflow node calls this workflow, the execution starts here.<br><br>
@ -90,7 +100,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi
}, },
{ {
displayName: 'Input Source', displayName: 'Input Source',
name: 'inputSource', name: INPUT_SOURCE,
type: 'options', type: 'options',
options: [ options: [
{ {
@ -136,7 +146,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi
default: '', default: '',
placeholder: 'e.g. fieldName', placeholder: 'e.g. fieldName',
description: 'Name of the field', description: 'Name of the field',
noDataExpression: true, // noDataExpression: true,
}, },
{ {
displayName: 'Type', displayName: 'Type',
@ -200,7 +210,7 @@ If you don't provide fields, all data passed into the 'Execute Workflow' node wi
default: true, default: true,
description: description:
'Whether to attempt conversion on type mismatch, rather than directly returning an Error', 'Whether to attempt conversion on type mismatch, rather than directly returning an Error',
noDataExpression: true, // noDataExpression: true,
}, },
{ {
displayName: 'Ignore Type Mismatch Errors', displayName: 'Ignore Type Mismatch Errors',