How to get workflow name?

Hello,

I have also another question: Is it possible to get the name of the workflow in my own node?
I want to export some data into a file and it would be nice, if the file name contains the workflow name.

Thank you!

Don't know if this is still relevant to you, but for others who came across this in Google search, you can use "Extract Context Properties" under IO>Other categories.  This will give you the flow variable port, which will contain the workflow name.  I've used "Variable to Table Column" then "Unpivoting" nodes to turn it into a table.

Take a look at the source code for the Save Workflow node - that gets you to the workflow manager (I think, from memeory), which probably is able to tell you the name

Steve

https://tech.knime.org/forum/knime-developers/getting-information-about-current-workflow-within-a-nodemodel

1 Like