Icon

1. Workflow Control with Flow Variables

<p><strong>Workflow Control with Flow Variable</strong></p><p>Flow variables are parameters that can be used to control the configuration settings of nodes. When a new execution with different settings is required, flow variables can be used to dynamically change the settings instead of manually adjusting it.</p><p>This workflow shows how to <strong>create</strong>, <strong>apply</strong>, and <strong>manipulate </strong>flow variables.</p><p><strong><em>Note.</em></strong> Flow variables are available only for the <strong>downstream </strong>nodes in a workflow.</p>

Creating and applying flow variables using Configuration nodes

Workflow: Workflow Control with Flow Variable


Flow variables are parameters that can be used to control the configuration settings of nodes. When a new execution with different settings is required, flow variables can be used to dynamically change the settings instead of manually adjusting it.

This workflow shows how to create, apply, and manipulate flow variables.

Note. Flow variables are available only for the downstream nodes in a workflow.

Reading data

From data to variables and back

1. Create flow variable with Table Row to Variable node:

2. Create new flow variables with Variable Creator node:

3. Create flow variable from node configuration

4. Create new flow variables from other variables:

Create new flow variable "x", where x=500 if country=USA, and x=100 for every other country

Modify flow variables

Filter to rows whereamount is larger than x
Row Filter
Component
Modify flow variables
Variable Expression
Convert flow variableback to table row
Variable to Table Row
Find country with highest sales
Filter data to countrywith highest quantity
Row Filter
Create new flow variable "x"
Java Edit Variable
sales.csv
CSV Reader
Create new flow variables
Variable Creator
Convert country valueof first row to flow variable
Table Row to Variable
Create new flow variable "x"
Variable Expression
Date&Time Preprocessing
Merge variablesof different branches
Merge Variables
Filter data to Germany andexport value as flow variable
Row Filter

Nodes

Extensions

Links