mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
feat(core): Handle Declarative nodes more like regular nodes (#13007)
This commit is contained in:
committed by
GitHub
parent
ac7bc4f191
commit
a65a9e631b
@@ -69,7 +69,6 @@ import {
|
||||
handleCycles,
|
||||
filterDisabledNodes,
|
||||
} from './partial-execution-utils';
|
||||
import { RoutingNode } from './routing-node';
|
||||
import { TriggersAndPollers } from './triggers-and-pollers';
|
||||
|
||||
export class WorkflowExecute {
|
||||
@@ -1171,27 +1170,7 @@ export class WorkflowExecute {
|
||||
// For webhook nodes always simply pass the data through
|
||||
return { data: inputData.main as INodeExecutionData[][] };
|
||||
} else {
|
||||
// For nodes which have routing information on properties
|
||||
|
||||
const routingNode = new RoutingNode(
|
||||
workflow,
|
||||
node,
|
||||
connectionInputData,
|
||||
runExecutionData ?? null,
|
||||
additionalData,
|
||||
mode,
|
||||
);
|
||||
|
||||
return {
|
||||
data: await routingNode.runNode(
|
||||
inputData,
|
||||
runIndex,
|
||||
nodeType,
|
||||
executionData,
|
||||
undefined,
|
||||
abortSignal,
|
||||
),
|
||||
};
|
||||
throw new ApplicationError('Declarative nodes should been handled as regular nodes');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user