Icon

main workflow

main workflow

main workflow

This is an example I came up with based on a use case where I had the need for 15 different switches and didn't want to use one super CASE SWITCH node.

Attention: Please make sure to also download the folder "subs" and the 2 workflows "sub1" and "sub2" to make this workflow work.

You'll find more details and some other solutions to the same problem by some great KNIMErs here in the forums:

https://forum.knime.com/t/better-alternative-to-case-switch-with-15-options/42627

list of super villainscreate sub workflow "address"tbl > vardel row which determinessub workflowtbl > JSONcall sub wfas defined in Table Creator NodeJSON > tblfilter forvillainfilter outtbl fromsub wf conversionTable Creator String Manipulation Table Rowto Variable Column Filter Table to JSON Call Local Workflow(Row Based) JSON to Table Row Filter Column Filter list of super villainscreate sub workflow "address"tbl > vardel row which determinessub workflowtbl > JSONcall sub wfas defined in Table Creator NodeJSON > tblfilter forvillainfilter outtbl fromsub wf conversionTable Creator String Manipulation Table Rowto Variable Column Filter Table to JSON Call Local Workflow(Row Based) JSON to Table Row Filter Column Filter

Nodes

Extensions

Links