switching workflow

Hello guys,

is there a node on knime, if the value of a column X is not null, it executes the node “Excel Writer” to generate the Output file, without running the rest of the workflow.
Otherwise (if the value of a column X is null) it continues the workflow execution without generating the Excel file.
I found the “Switch” node, but I don’t know how to put my condition with this node.

Thanks in advance

you could use a rule engine node to check your condition and return 0 or 1, convert the output to a variable and then use the variable to choose the port of the switch node dynamically.

1 Like

@mosmel you could try and create a switch with flow variables:

I developed this workflow with a switch for a Knimer who wanted to either write an Excel file, print a plot or both. It should be pretty easy to modify for your case.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.