StreamableKNIME Java Snippet Nodes version 3.7.0.v201811281313 by KNIME AG, Zurich, Switzerland
Each rule is represented by a line.
The comments start with
in a line, and anything after that is not interpreted as a rule in
Rules consist of a condition part (antecedent), which must
, and an outcome (consequent, after the => symbol) which is put into
the new column if the rule matches.
The outcome of a rule can either be a constant string, a constant number or boolean constant. The type of the outcome column is the common super type of all possible outcomes (including the rules that can never match). If no rule matches, the outcome is a missing value.
Columns are given by their name surrounded by $, numbers are given in the usual decimal representation. Note that strings must not contain (double-)quotes.
The logical expressions can be grouped with parentheses. The
precedence rules for them are the following:
NOT binds most,
XOR and finally
OR the least.
Comparison operators always take
precedence over logical connectives.
All operators (and their names)
Some example rules (each should be in one line):
// This is a comment $Col0$ > 0 => "Positive"When the values in Col0 are greater than 0, we assign Positive to the result column value (if no previous rule matched).
$Col0$ = "Active" AND $Col1$ <= 5 => "Outlier"You can combine conditions.
You can use either Ctrl+Space to insert predefined parts, or select them from the upper controls.
To use this node in KNIME, install KNIME Java Snippet Nodes from the following update site:
Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to email@example.com, follow @NodePit on Twitter, or chat on Gitter!
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.