Flow definition examples
To help you build your own flows, you can refer to the examples installed with Flow Editor. You can access the examples through
:- Sample.xml: Demonstrates a simple flow with three jobs and the dependency Completes successfully.
- jobs_and_dependencies.xml: Demonstrates a flow with three separate branches that run according to whether the first job in the flow completed successfully or ended with a specific exit code or exit codes.
- event_and_alarm.xml: Demonstrates how to use time of day and arrival of a file in a specific directory to trigger a subflow. Also uses an alarm to send an email to the administrator.
- dynamic_flow.xml and target_flow.xml: Demonstrates how to use a subflow by reference, how to pass input variables from a main flow to a subflow, and how to pass a variable from a subflow to the parent flow and use it in a subsequent job in the main flow.
- flowarray_eval.xml: Demonstrates how to use the variable evaluator to decide which branch of a flow to run, how to run flow arrays in parallel or sequentially, and how to use a variable to set the array size. This flow contains two subflows to be run as arrays, and a condition evaluator that decides whether to run the arrays in parallel or sequentially.