mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
@@ -320,7 +320,7 @@ export const useNodeCreatorStore = defineStore(STORES.NODE_CREATOR, {
|
|||||||
.reduce((acc: Record<string, INodeTypeDescription>, node: INodeTypeDescription) => {
|
.reduce((acc: Record<string, INodeTypeDescription>, node: INodeTypeDescription) => {
|
||||||
const clonedNode = deepCopy(node);
|
const clonedNode = deepCopy(node);
|
||||||
const actions = node.actions || [];
|
const actions = node.actions || [];
|
||||||
// Do not merge core nodes
|
|
||||||
const normalizedName = node.name.toLowerCase().replace('trigger', '');
|
const normalizedName = node.name.toLowerCase().replace('trigger', '');
|
||||||
const existingNode = acc[normalizedName];
|
const existingNode = acc[normalizedName];
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,19 @@ export class ExecuteWorkflow implements INodeType {
|
|||||||
inputs: ['main'],
|
inputs: ['main'],
|
||||||
outputs: ['main'],
|
outputs: ['main'],
|
||||||
properties: [
|
properties: [
|
||||||
|
{
|
||||||
|
displayName: 'Operation',
|
||||||
|
name: 'operation',
|
||||||
|
type: 'hidden',
|
||||||
|
noDataExpression: true,
|
||||||
|
default: 'call_workflow',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Call Another Workflow',
|
||||||
|
value: 'call_workflow',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Source',
|
displayName: 'Source',
|
||||||
name: 'source',
|
name: 'source',
|
||||||
|
|||||||
@@ -8,7 +8,8 @@ export class ExecuteWorkflowTrigger implements INodeType {
|
|||||||
icon: 'fa:sign-out-alt',
|
icon: 'fa:sign-out-alt',
|
||||||
group: ['trigger'],
|
group: ['trigger'],
|
||||||
version: 1,
|
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: '',
|
eventTriggerDescription: '',
|
||||||
maxNodes: 1,
|
maxNodes: 1,
|
||||||
defaults: {
|
defaults: {
|
||||||
@@ -26,6 +27,21 @@ export class ExecuteWorkflowTrigger implements INodeType {
|
|||||||
type: 'notice',
|
type: 'notice',
|
||||||
default: '',
|
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',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user