fix: Show Execute Workflow node in nodes panel (#5583)

* fix: Show Execute Workflow node in nodes panel

* chore: remove wrong comment
This commit is contained in:
Mutasem Aldmour 2023-02-28 17:51:33 +03:00 committed by GitHub
parent e3ef9f7c7b
commit d6d1c07a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 2 deletions

View file

@ -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];

View file

@ -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',

View file

@ -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: {
@ -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',
},
],
};