mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Fix partial workflow execution with specific trigger data (#13505)
Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
@@ -48,7 +48,7 @@ export class ManualExecutionService {
|
||||
executionId: string,
|
||||
pinData?: IPinData,
|
||||
): PCancelable<IRun> {
|
||||
if (data.triggerToStartFrom?.data && data.startNodes && !data.destinationNode) {
|
||||
if (data.triggerToStartFrom?.data && data.startNodes) {
|
||||
this.logger.debug(
|
||||
`Execution ID ${executionId} had triggerToStartFrom. Starting from that trigger.`,
|
||||
{ executionId },
|
||||
@@ -78,6 +78,10 @@ export class ManualExecutionService {
|
||||
},
|
||||
};
|
||||
|
||||
if (data.destinationNode) {
|
||||
executionData.startData = { destinationNode: data.destinationNode };
|
||||
}
|
||||
|
||||
const workflowExecute = new WorkflowExecute(
|
||||
additionalData,
|
||||
data.executionMode,
|
||||
@@ -105,6 +109,7 @@ export class ManualExecutionService {
|
||||
|
||||
// Can execute without webhook so go on
|
||||
const workflowExecute = new WorkflowExecute(additionalData, data.executionMode);
|
||||
|
||||
return workflowExecute.run(workflow, startNode, data.destinationNode, data.pinData);
|
||||
} else {
|
||||
// Partial Execution
|
||||
|
||||
Reference in New Issue
Block a user