mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
feat(Execute Workflow Node): Modify execute workflow parameters (#11830)
This commit is contained in:
parent
cd5ad65e90
commit
ae08d70ac0
|
@ -6,8 +6,9 @@ import type {
|
||||||
INodeType,
|
INodeType,
|
||||||
INodeTypeDescription,
|
INodeTypeDescription,
|
||||||
} from 'n8n-workflow';
|
} from 'n8n-workflow';
|
||||||
import { generatePairedItemData } from '../../utils/utilities';
|
|
||||||
import { getWorkflowInfo } from './GenericFunctions';
|
import { getWorkflowInfo } from './GenericFunctions';
|
||||||
|
import { generatePairedItemData } from '../../utils/utilities';
|
||||||
|
|
||||||
export class ExecuteWorkflow implements INodeType {
|
export class ExecuteWorkflow implements INodeType {
|
||||||
description: INodeTypeDescription = {
|
description: INodeTypeDescription = {
|
||||||
|
@ -16,7 +17,7 @@ export class ExecuteWorkflow implements INodeType {
|
||||||
icon: 'fa:sign-in-alt',
|
icon: 'fa:sign-in-alt',
|
||||||
iconColor: 'orange-red',
|
iconColor: 'orange-red',
|
||||||
group: ['transform'],
|
group: ['transform'],
|
||||||
version: [1, 1.1],
|
version: [1, 1.1, 1.2],
|
||||||
subtitle: '={{"Workflow: " + $parameter["workflowId"]}}',
|
subtitle: '={{"Workflow: " + $parameter["workflowId"]}}',
|
||||||
description: 'Execute another workflow',
|
description: 'Execute another workflow',
|
||||||
defaults: {
|
defaults: {
|
||||||
|
@ -67,6 +68,27 @@ export class ExecuteWorkflow implements INodeType {
|
||||||
],
|
],
|
||||||
default: 'database',
|
default: 'database',
|
||||||
description: 'Where to get the workflow to execute from',
|
description: 'Where to get the workflow to execute from',
|
||||||
|
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.1 } }] } },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Source',
|
||||||
|
name: 'source',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Database',
|
||||||
|
value: 'database',
|
||||||
|
description: 'Load the workflow from the database by ID',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Define Below',
|
||||||
|
value: 'parameter',
|
||||||
|
description: 'Pass the JSON code of a workflow',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
default: 'database',
|
||||||
|
description: 'Where to get the workflow to execute from',
|
||||||
|
displayOptions: { show: { '@version': [{ _cnd: { gte: 1.2 } }] } },
|
||||||
},
|
},
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
@ -163,6 +185,7 @@ export class ExecuteWorkflow implements INodeType {
|
||||||
name: 'executeWorkflowNotice',
|
name: 'executeWorkflowNotice',
|
||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
default: '',
|
||||||
|
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.1 } }] } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Mode',
|
displayName: 'Mode',
|
||||||
|
|
Loading…
Reference in a new issue