Overview
You can create a pipeline (nested Flow) where some of the steps (inner Flows), are configured to be executed conditionally.
For example, if your Flow sends emails to the finances after loading data to the data warehouse, it can be configured to be triggered only when the number of new orders is larger than the threshold.
Also, read about executing Flows in a loop.
Set conditions
Step 1. Create a nested Flow and add steps (inner Flows).
Step 2. Select the Flow to be executed conditionally, and go to the Flow parameters.
Step 3. Type in JavaScript
in the Condition
field.
Condition
Set the value
variable to true
if you want the inner Flow to be executed, otherwise set it to false
.
value = boolean condition; // true or false
Available variables
The following variables can be referenced by name from JavaScript and Python code:
Name | Class name / JavaDoc | Package |
---|---|---|
etlConfig | com.toolsverse.etl.core.config.EtlConfig | com.toolsverse.etl.core.config |
scenario | com.toolsverse.etl.core.engine.Scenario | com.toolsverse.etl.core.engine |
Comments
0 comments
Please sign in to leave a comment.