Icon

2. Automated IF Switch

<p><strong>Automated IF Switch</strong></p><p>This workflow implements an example of a automated <em>IF Switch</em> to control which parts of the workflows are executed.</p><p>The example is the same as in the workflow "1. Manual IF Switch", with the only difference that the IF Switch is controlled by a flow variable called "port-choice" (created by the <em>Variable Creator</em> node).</p><p>Change the value of the flow variable (in the <em>Variable Creator</em> configuration window) to see the difference.</p>

Workflow: Automated IF Switch


This workflow implements an example of a automated IF Switch to control which parts of the workflows are executed.

The example is the same as in the workflow "1. Manual IF Switch", with the only difference that the IF Switch is controlled by a flow variable called "port-choice" (created by the Variable Creator node).

Change the value of the flow variable (in the Variable Creator configuration window) to see the difference.

Reading data

Aggregating data:

  • mean(engine size)

  • max(horse power)

  • range(curb weight)

IF Switch

Creating flow variable

To control IF Switch.

Manually activate/disactivatethe output ports andconnected branches
IF Switch
Collect data fromall active branches
End IF
Create flow variableport-choice
Variable Creator
cars-85.csv
CSV Reader
Calculate stats
GroupBy
city_mpg [Binned] to Binned MPG
Column Renamer
Quantiles onhighway_mpg
Binner
highway_mpg [Binned] to Binned.MPG
Column Renamer
Quantiles oncity_mpg
Binner

Nodes

Extensions

Links