RULE ENGINE - MANIPULATION

Good evening guys, how are you ?

I can the station number column and the ORIGIN and DESTINATION columns, for cases where the station number is 1 I would like it to say what is in the ORIGIN and destination column of station number 2.

Hi,
With the rule engine, this would look approximately like this:

$Station Number$ = 1 => $ORIGEM$
$Station Number$ = 2 => $DESTINO$

Kind regards,
Alexander

Good morning @Gabriel2020

Personally I would not use a Rule Engine for this. I would use a Java Snippet Node.

I have uploaded simple solution example here Rule Engine - Manipulation - Question – KNIME Community Hub

Inside the Java Snippet looks like this:

The output table looks like this;
image

Hope this helps

Frank

1 Like

Ignore me

@AlexanderFillbrunn solution is better!

Frank

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