Case switch (run one or all)

Hi all,
I am working on a dashboard workflow that have sub-workflows. I wonder how can I use the case switch node with single selection node to run only one section or all the branch of the workflow. So, in the single selection node I have to add an “all” option to run all the branch. how can I do that?

Thank you all!

Hi @Suad_Alshammari and welcome back to the KNIME Forum.

For this, there are probably different ways of doing it, but I would do something like this:

Scenario 1: workflow-b selected

Scenario 2: All selected

Single Selection Widget

Rule Engine Variable

Here we are transforming the different options to an active port for the CASE Switch.

CASE Switch Start

End If

There is no need to configure, just note that you must connect each of them to one of the option (1,2,3 ports) and also to the all port in the Case Switch node.

If you need it, I have also uploaded the workflow I showed in the example here:

Let me know if this information helps you.

All the best,

Jose.

5 Likes

This works!
Thank you @josegallardo !

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