Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: (Execute Workflow Node): Inputs for Sub-workflows (#11830) #11837

Merged
merged 42 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ae08d70
feat(Execute Workflow Node): Modify execute workflow parameters (#11830)
igatanasov Nov 21, 2024
7012d9b
feat(Execute Workflow Trigger Node): Add MVP for explicit input param…
CharlieKolb Nov 26, 2024
698f7d0
feat(Execute Workflow Trigger Node): Add types for input fields (#11922)
CharlieKolb Nov 27, 2024
001e3f9
feat(Execute Workflow Trigger Node): Add JSON-based input modes and d…
CharlieKolb Nov 28, 2024
75a571e
Merge branch 'master' of github.com:n8n-io/n8n into feature-sub-workf…
igatanasov Dec 2, 2024
dc400b7
fix(Workflow Trigger Node): Display dropdown for V1.1 and up only (#1…
CharlieKolb Dec 2, 2024
e2b00a3
fix(Workflow Trigger Node): Implement Product feedback (#12008)
CharlieKolb Dec 2, 2024
2e55cbd
feat: Update Example Sub-Workflow (#12000)
CharlieKolb Dec 4, 2024
8e374b4
Merge branch 'master' of github.com:n8n-io/n8n into feature-sub-workf…
igatanasov Dec 5, 2024
c31bf0a
Ado-2898-execute-workflow-node-add-workflow-inputs-parameter (#11887)
igatanasov Dec 6, 2024
b6eb5d1
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 6, 2024
993581c
feat(Sub-Workflow Inputs): Add e2e tests for Sub-Workflow Input (#12076)
CharlieKolb Dec 9, 2024
45dcf99
feat(editor): Add map option to preserve field order (#12084)
igatanasov Dec 9, 2024
c9f2b16
feat(editor): Implement explicit passthrough mode (#12107)
MiloradFilipovic Dec 9, 2024
0cea411
feat(executeWorkflowTrigger): add substitution for workflow input val…
igatanasov Dec 10, 2024
e4d9e7f
Merge branch 'master' of github.com:n8n-io/n8n into feature-sub-workf…
igatanasov Dec 10, 2024
49f204a
feat(core): Implement fixed collection field count validation (#12126)
MiloradFilipovic Dec 10, 2024
0575ddb
feat(editor): Add telemetry for sub-workflow inputs (#12142)
MiloradFilipovic Dec 11, 2024
8c37396
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 11, 2024
d8f003c
Merge remote-tracking branch 'origin/master' into feature-sub-workflo…
netroy Dec 17, 2024
c2ec9d5
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 18, 2024
dd22715
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 18, 2024
c3e874c
fix(editor): Address workflow inputs product feedback (#12284)
MiloradFilipovic Dec 18, 2024
a78ddf7
feat(editor): Implement resource mapping for inputs in workflow tool …
MiloradFilipovic Dec 19, 2024
8351cd6
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 19, 2024
08ae1a4
feat(Execute Workflow Node): Move Type Conversion functionality to Re…
CharlieKolb Dec 19, 2024
142a14e
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 19, 2024
12f1990
Merge remote-tracking branch 'origin/feature-sub-workflow-inputs' int…
MiloradFilipovic Dec 19, 2024
4b5b5f8
chore: Add more e2e Sub-Workflow Input testing (#12308)
CharlieKolb Dec 19, 2024
e09ec8d
chore(Execute Workflow Node): Update text copy for ExecuteWorkflow no…
CharlieKolb Dec 20, 2024
d41b258
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 20, 2024
d2464b5
🔥 Removing duplicate imports
MiloradFilipovic Dec 20, 2024
0616a32
feat(editor): Add stale data warning to Resource Mapper (#12305)
MiloradFilipovic Dec 20, 2024
2ff09cc
fix(Execute Workflow Trigger Node): Make Trigger field required (#12323)
CharlieKolb Dec 20, 2024
ddf4962
chore: Sub-Workflow Inputs PR Pair Review (#12330)
CharlieKolb Dec 20, 2024
259b514
lint
CharlieKolb Dec 20, 2024
a363102
Fix e2e test
CharlieKolb Dec 20, 2024
ef5f400
fix missed lint
CharlieKolb Dec 20, 2024
48cb43e
🔥 Removing legacy subworkflow input from the tool
MiloradFilipovic Dec 20, 2024
ef3bb55
Merge remote-tracking branch 'origin/master' into feature-sub-workflo…
netroy Dec 20, 2024
7b5b93f
Merge branch 'master' into feature-sub-workflow-inputs
MiloradFilipovic Dec 20, 2024
2d4b5f1
Reapply change
CharlieKolb Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions packages/nodes-base/nodes/ExecuteWorkflow/ExecuteWorkflow.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import type {
INodeType,
INodeTypeDescription,
} from 'n8n-workflow';
import { generatePairedItemData } from '../../utils/utilities';

import { getWorkflowInfo } from './GenericFunctions';
import { generatePairedItemData } from '../../utils/utilities';

export class ExecuteWorkflow implements INodeType {
description: INodeTypeDescription = {
Expand All @@ -16,7 +17,7 @@ export class ExecuteWorkflow implements INodeType {
icon: 'fa:sign-in-alt',
iconColor: 'orange-red',
group: ['transform'],
version: [1, 1.1],
version: [1, 1.1, 1.2],
subtitle: '={{"Workflow: " + $parameter["workflowId"]}}',
description: 'Execute another workflow',
defaults: {
Expand Down Expand Up @@ -67,6 +68,27 @@ export class ExecuteWorkflow implements INodeType {
],
default: 'database',
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',
igatanasov marked this conversation as resolved.
Show resolved Hide resolved
},
],
default: 'database',
description: 'Where to get the workflow to execute from',
displayOptions: { show: { '@version': [{ _cnd: { gte: 1.2 } }] } },
},

// ----------------------------------
Expand Down Expand Up @@ -163,6 +185,7 @@ export class ExecuteWorkflow implements INodeType {
name: 'executeWorkflowNotice',
type: 'notice',
default: '',
displayOptions: { show: { '@version': [{ _cnd: { lte: 1.1 } }] } },
},
{
displayName: 'Mode',
Expand Down