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 large then the threshold.
Also, read about executing flows in a loop.
Setting conditions
Step 1. Create a nested flow and add steps (inner flows).
Step 2. Select the flow to be executed conditionally and go to 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 objects
The following objects can be referenced by name from the JavaScript code:
Object name | Class name / JavaDoc | Import |
---|---|---|
etlConfig | com.toolsverse.etl.core.config.EtlConfig | importPackage(com.toolsverse.etl.core.config); |
scenario | com.toolsverse.etl.core.engine.Scenario | importPackage(com.toolsverse.etl.core.engine); |
Comments
0 comments
Please sign in to leave a comment.