List of All Variable Created in A Workflow

Hi @psfard, this is one of the areas where the Classic UI continues to have functionality that has yet to appear in Modern UI,

In Classic UI, finding the node that created a variable is relatively straightforward and I have used this to good effect on a large number of occasions.

Take the following (contrived for the purpose) workflow:

Opening the Flow Variable table from the Column Filter I see that I have two flow variables “Greeting” and “VarX”. As has been mentioned already, we can see the Owner ID of these 3:26 and 3:25.

In Classic UI, choose the “Find Node” menu (e.g. mapped here to Ctrl F)

image

The Find node dialog opens

Simply type in the required owner id for the variable in question:


and then select the node that is suggested to find it on on the workflow

image

I am very much hoping that this same functionality will appear soon in Modern UI.

In terms of getting a list programmatically, I haven’t got a solution to this as yet. Although the KNIME views of variables (both in Classic and Modern) shows the owner id of a variable on the screen, I have not found a way of actually accessing this. It would be nice if there were a node for extracting this.

If that were available, the other part of the jigsaw could be to use the Timer Info node, as this can give the node types and their IDs, so you’d then be able to match it up easily.

At the moment though, visually mapping individual flow variables to nodes is all I can find through the UI.

I’ve added the following post in feedback and ideas.

3 Likes