fix(core): Fix $getWorkflowStaticData on task runners (#12153)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2024-12-11 19:48:36 +01:00
committed by GitHub
parent dce0c58f86
commit b479f14ef5
5 changed files with 23 additions and 4 deletions

View File

@@ -157,6 +157,13 @@ export class Workflow {
this.expression = new Expression(this);
}
overrideStaticData(staticData?: IDataObject) {
this.staticData = ObservableObject.create(staticData || {}, undefined, {
ignoreEmptyOnFirstChild: true,
});
this.staticData.__dataChanged = true;
}
/**
* The default connections are by source node. This function rewrites them by destination nodes
* to easily find parent nodes.