> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Compose workflows from subworkflows and maps

> Reuse saved workflows inside others, and fan out work over a runtime list.

How-to guideApplies to: All deployments

## Reuse a workflow with a subworkflow step

Add a `subworkflow` step with the saved child workflow's ID when the parent should reuse another workflow. The compiler loads the child and validates it recursively.

For example, a weekly executive review can reuse regional-yield and supplier-risk workflows, then combine their results.

A subworkflow is different from a [subagent](https://docs.e6data.com/agentflow/concepts/building-blocks.md#subagent): a subworkflow calls a saved, versioned workflow by ID.

## Fan out with a map step

Use a `map` step when a run must process a list that's only known at run time. Configure a child step and bounded concurrency.

When the map finishes, its fan-in result records the total, the number that succeeded and failed, and which items failed, so you can retry only those.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.