Skip to content

Commit

Permalink
fix: Show Execute Workflow node in nodes panel (#5583)
Browse files Browse the repository at this point in the history
* fix: Show Execute Workflow node in nodes panel

* chore: remove wrong comment
  • Loading branch information
mutdmour committed Feb 28, 2023
1 parent e3ef9f7 commit d6d1c07
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor-ui/src/stores/nodeCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, {
.reduce((acc: Record<string, INodeTypeDescription>, node: INodeTypeDescription) => {
const clonedNode = deepCopy(node);
const actions = node.actions || [];
// Do not merge core nodes

const normalizedName = node.name.toLowerCase().replace('trigger', '');
const existingNode = acc[normalizedName];

Expand Down
13 changes: 13 additions & 0 deletions packages/nodes-base/nodes/ExecuteWorkflow/ExecuteWorkflow.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ export class ExecuteWorkflow implements INodeType {
inputs: ['main'],
outputs: ['main'],
properties: [
{
displayName: 'Operation',
name: 'operation',
type: 'hidden',
noDataExpression: true,
default: 'call_workflow',
options: [
{
name: 'Call Another Workflow',
value: 'call_workflow',
},
],
},
{
displayName: 'Source',
name: 'source',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export class ExecuteWorkflowTrigger implements INodeType {
icon: 'fa:sign-out-alt',
group: ['trigger'],
version: 1,
description: 'Runs the flow when called by the Execute Workflow node from a different workflow',
description:
'Helpers for calling other n8n workflows. Used for designing modular, microservice-like workflows.',
eventTriggerDescription: '',
maxNodes: 1,
defaults: {
Expand All @@ -26,6 +27,21 @@ export class ExecuteWorkflowTrigger implements INodeType {
type: 'notice',
default: '',
},
{
displayName: 'Events',
name: 'events',
type: 'hidden',
noDataExpression: true,
options: [
{
name: 'Workflow Call',
value: 'worklfow_call',
description: 'When called by another workflow using Execute Workflow Trigger',
action: 'When Called by Another Workflow',
},
],
default: 'worklfow_call',
},
],
};

Expand Down

0 comments on commit d6d1c07

Please sign in to comment.