feat(core): Handle Declarative nodes more like regular nodes (#13007)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-02-03 14:00:53 +01:00
committed by GitHub
parent ac7bc4f191
commit a65a9e631b
13 changed files with 245 additions and 211 deletions

View File

@@ -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');
}
}