I am just having an issue for which maybe you’ve got a good solution.
Imagine that there is a workflow that has two branches. On certain circumstances one of them is inactive, however both produces exacly the same table spec so flow can continue for that very point.
I tried to create a new node (I named it Branch joiner) which has two inputs and one of them, and only one, can be inactive so the node should return the table of the active one.
Problem is that, due to the architecture of NodeModel, it does not support inactive branches even implementing InactiveBranchConsumer.
When NodeModel executes the internal configure (https://github.com/knime/knime-core/blob/be4a5be7fdd139930309ad0aecab02aa20ecc356/org.knime.core/src/eclipse/org/knime/core/node/NodeModel.java#L1086), it expects a valid PortObjectSpec as input which throws an exception in case of one input is inactive.
Is there any way to solve this problem? Any node I am actually missing that works as branch “joiner”? (not confuse with table joiner).