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>
Annotations and comments
  • 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.
  • From data to variables and back
  • 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
  • 1. Create flow variable with Table Row to Variable node:
  • Reading data
  • 2. Create new flow variables with Variable Creator node:
  • Modify flow variables
  • 3. Create flow variable from node configuration
  • Creating and applying flow variables using Configuration nodes
  • sales.csv
  • write to file with url as <output_path>
  • Create path variable
  • Create integer flow variable num_items
  • Filter to quantity equals num_items
  • Create string flow variable file_name
  • Extract data rows for 01.01.2009 - 01.01.2011
  • Date column from String to DateTime
  • Calculate total quantity and amount for each country
  • Sort by quantity in descending order
  • Create new flow variable "x"
  • Merge variables of different branches
  • Filter data to country with highest quantity
  • Filter data to Germany and export value as flow variable
  • Filter to rows where amount is larger than x
  • Sort by quantity
  • Convert country value of first row to flow variable
  • Create new flow variables
  • Convert flow variable back to table row

Nodes

Extensions

Links