Skip to main content
Make sure you have a good understanding of the key concepts before you get started with Domino Flows.

Basic flow

This section demonstrates a basic example that:
  • Takes two integers as an input to a flow.
  • The first task adds the integers together and passes the result as an input to the second task.
  • The second task takes the square root of the input and returns the result as the final output of the flow.
This example flow can be visualized as follows: Simple Math Flow Graph To create a Domino Flow:
  1. Create a workspace using the Domino Standard Environment (DSE) from 6.0 onwards, or a custom environment that is built on top of the DSE >= 6.0, as these contain the required Flyte Python libraries.
  2. Create a file named add.py in the root directory. Add the following code to the file to add two integer inputs together:
  3. Create a file named sqrt.py in the root directory. Add the following code to the file to calculate the square root of the input:
  4. Create a file named workflow.py in the root directory (see the Flytekit Python library documentation on GitHub). Add the following code to the file to define the flow:
  5. Commit the code and run the following command in the Workspace terminal to register and run the flow:
  6. Once you run the command above, navigate to Flows > Flow name > Run Name in the Domino UI to monitor the results and view the outputs that were produced by the execution. Monitor simple flow
  7. To visualize the full execution flow, click the Graph pivot. Simple Flow Graph

Training flow

This section demonstrates a basic training flow example with the following steps:
  1. Data is loaded in from two different sources and a snapshot of the data is taken.
  2. The data is merged together as a single dataset.
  3. Basic preprocessing is done on the dataset.
  4. A model is trained using the cleaned dataset.
The training flow can be visualized as follows: Training Flow Graph To create the training flow:
  1. Make a fork of the template GitHub repository.
  2. Create a Workspace using the Domino Standard Environment (DSE) from 6.0 onwards, or a custom environment that is built on top of the DSE >= 6.0. Workspace
  3. Inspect the mlops_flow.py file for the definition of the flow. Note how a helper method, called run_domino_job_task, is used here instead of the DominoJobConfig and DominoJobTask in the basic example above.
  4. Run the following command in the Workspace terminal to register and run the flow:
  5. Navigate to Flows > Flow name > Run name to monitor the results and view the outputs that were produced by the execution. Training Flow Run

Next steps

Last modified on July 15, 2026