Manipulating default value of Integer Flow Variable

Hi there!

I want to filter data corresponding to flow variables individually set by the user. I am currently using two integer flow variables to do this. I am now wondering if there is a possibilty/work-around to set the default integer value of the int-flow-variable-node to ‘’. So if the user does NOT want to filter the data corresponding to any of the two integer value, the complete table without filtering is shown.

Thanks for your help and have a great day!


Hi Oliver_1,

maybe try to build your logic with a rule engine?
e.g. -1 as default value = not filter else filter by flow variable
KNIME_project2.knwf (11.8 KB)

Else if you are using the web portal for input - then you could check if the user wants to filter on a first input page and then enable/disable the integer widgets depending on the user input

Not exacly what you asked but maybe that helps :slight_smile:

Hi @Oliver_1 -

Want to post an example of what your logic currently looks like? As @AnotherFraudUser has suggested, this sounds like a case for the Rule Engine node, possibly combined with some of the Case Switch nodes for branching.

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