# DAG Flows

DAG Flow is a pipeline of one or more [Instances](https://socrates.gitbook.io/socrates/fundamentals/instances) arranged in a Graph. They share ENV Variables ([parameters](https://socrates.gitbook.io/socrates/fundamentals/parameters)), and pass Outputs to the next Nodes in the Branch. It has its own execution history and can be drilled down to individual [Instances](https://socrates.gitbook.io/socrates/fundamentals/instances).

## Creating a DAG Flow <a href="#creating-a-block" id="creating-a-block"></a>

Go to `/dag/create/`

Click + to add more Nodes (Instances) to your flow. Your Nodes are numbered, so you can choose an Instance for each node.

Also Choose an Error behaviour:

* Continue - Ignore Errors
* Stop Branch - Stop all child nodes
* Stop Tree - Stop all flow execution.

![](https://1971768033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVaIfG2Rerp9OfcB9UQTT%2Fuploads%2FDuoDnoh5jIEW4NddW9Il%2FScreen%20Shot%202022-04-03%20at%2017.44.02.png?alt=media\&token=f8d52450-a871-4d07-8a5d-d555c12839c5)

Click <mark style="background-color:green;">Create</mark>.

## Running a DAG Flow

Go to `/dag/list/` and choose an Flow to Run.

Expand the parameters tab to override if needed.

{% hint style="info" %}
Wait for [Dynamic Parameters](https://socrates.gitbook.io/socrates/fundamentals/parameters/dynamic) to finish rendering before clicking Play.
{% endhint %}

![](https://1971768033-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVaIfG2Rerp9OfcB9UQTT%2Fuploads%2F30AkBVf47Sn3jtlMsOmt%2FScreen%20Shot%202022-04-03%20at%2017.55.22.png?alt=media\&token=0dae110c-73a1-4849-8222-d88c3aa62487)

The Run Page has the following capabilities:

* Job execution history
* Click on each node to show console log or go to the instance run page of that specific node.
* Overriding specific parameters for your next executions.
* [Scheduling](https://socrates.gitbook.io/socrates/fundamentals/scheduler) with current chosen parameters.
