I have a requirement that as part of my custom node execution, I need to save the current workflow and then export it as .knwf file.
Can I use the code in SaveWorkflowNodeModel::execute() method in my node to save the current workflow?
And is there an API to export the current workflow (as knwf) in which my node is?