fix: Retain execution data between partial executions (new flow) (#11828)

This commit is contained in:
Danny Martini
2024-11-26 13:32:39 +01:00
committed by GitHub
parent 75e2b6fd9e
commit 3320436a6f
11 changed files with 159 additions and 14 deletions

View File

@@ -5,13 +5,14 @@ interface StubNode {
name: string;
parameters?: INodeParameters;
disabled?: boolean;
type?: string;
}
export function createNodeData(stubData: StubNode): INode {
return {
name: stubData.name,
parameters: stubData.parameters ?? {},
type: 'test.set',
type: stubData.type ?? 'n8n-nodes-base.set',
typeVersion: 1,
id: 'uuid-1234',
position: [100, 100],

View File

@@ -948,7 +948,7 @@ export class WorkflowExecute {
const returnPromise = (async () => {
try {
if (!this.additionalData.restartExecutionId) {
await this.executeHook('workflowExecuteBefore', [workflow]);
await this.executeHook('workflowExecuteBefore', [workflow, this.runExecutionData]);
}
} catch (error) {
const e = error as unknown as ExecutionBaseError;