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>
Annotations and comments
  • 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.
  • Creating flow variable To control IF Switch.
  • Aggregating data: mean(engine size) max(horse power) range(curb weight)
  • Reading data
  • Quantiles on city_mpg
  • Quantiles on highway_mpg
  • cars-85.csv
  • highway_mpg [Binned] to Binned.MPG
  • city_mpg [Binned] to Binned MPG
  • Collect data from all active branches
  • Calculate stats
  • Manually activate/disactivate the output ports and connected branches
  • Create flow variable port-choice

Nodes

Extensions

Links