i created a node with one normal input port (I1) and one optional input port (I2). The data for the optional input is created within a if-switch (if x true -> create I2, if x false -> don't create it). I1 is available in both cases.
I would like the node I created to be executed depending on the if switch with or without I2 (that's why it is optional....). The problem is that if x is false and I2 is not created, all subsequent nodes are disabled (even though I2 is optional and the node could be executed without it...). When i delete the connection of I2 to my node it can be executed...
Is there any way to realize this with KNIME?
Thanks,
Jonas
PS: I attached an example workflow as illustration
I was told that this is the expected behavior, I don't know a good solution to remedy this problem though. For normal table ports it may be possible to use an End If node with an empty table at one port. This means that the empty table will go into the optional input, though.
If I treat an optional input as an empty table, then it is possible to use an End If node, see attached. However, end if node requires both inputs to it to have the same table structure, so it may not be ideal.