# Flow

In DecisionRules, **Flows** are a rule type used to connect multiple decision-making steps into a single process.\
They let you visually orchestrate rules, transform data, branch logic, and integrate with external systems, all in one execution path.

#### Flow rules exist to:

* Combine multiple rules (Decision Tables, Decision Trees, Scripting Rules, etc.).
* Control execution order and branching.
* Prepare and pass data between steps.
* Integrate with APIs, databases, or external services.

#### **Types of Flows**

* **Decision Flow** – More versatile nodes (scripts, conditions, API calls, DB connectors) for complex orchestration and branching. Future-ready for more integrations.
* **Integration Flow** – Runs as a background job with extended time limits. Ideal for large datasets, heavy API calls, and long-running logic.

#### **When to Use**

Use a Flow when:

* You need to combine multiple rules into one workflow.
* The logic spans several steps or depends on external data.
* You want to keep decision-making modular and reusable.
* You require both quick responses and heavy batch processing.

The following sections explain each Flow type in more detail, including their features, differences, and typical use cases:

{% content-ref url="/pages/N1T44fnYEnB4qHkigk3S" %}
[Flow Designer](/doc/rules/flow/flow-designer.md)
{% endcontent-ref %}

{% content-ref url="/pages/mvBCC1t8IwGUAx55MqFy" %}
[Flow Nodes Overview](/doc/rules/flow/flow-nodes-overview.md)
{% endcontent-ref %}

{% content-ref url="/pages/RH9BnKC6uKNpkFo0xLeT" %}
[Flow Limits](/doc/rules/flow/flow-limits.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decisionrules.io/doc/rules/flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
