feat: update workflow file

This commit is contained in:
karishmas6
2024-06-08 00:22:24 +05:30
parent 91ff46d8f0
commit 1e84773c3b

View File

@@ -402,5 +402,21 @@ export class WorkflowGenerator {
return copy;
};
/**
* Enables to update the generated workflow file.
* Adds a generated flag action for possible pausing during the interpretation.
* Used for loading a recorded workflow to already initialized Generator.
* @param workflowFile The workflow file to be used as a replacement for the current generated workflow.
* @returns void
*/
public updateWorkflowFile = (workflowFile: WorkflowFile, meta: MetaData) => {
this.recordingMeta = meta;
const params = this.checkWorkflowForParams(workflowFile);
if (params) {
this.recordingMeta.params = params;
}
this.workflowRecord = workflowFile;
}
}