mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Retain execution data between partial executions (new flow) (#11828)
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -206,7 +206,7 @@ describe('WorkflowExecute', () => {
|
||||
}
|
||||
});
|
||||
|
||||
describe('WorkflowExecute, NodeExecutionOutput type test', () => {
|
||||
test('WorkflowExecute, NodeExecutionOutput type test', () => {
|
||||
//TODO Add more tests here when execution hints are added to some node types
|
||||
const nodeExecutionOutput = new NodeExecutionOutput(
|
||||
[[{ json: { data: 123 } }]],
|
||||
|
||||
Reference in New Issue
Block a user