# Custom Workflow Examples

Build complex deployment workflows with dependency management and parallel execution.

## Multi-Stage Deployment

```nickel
{
  workflows = [{
    name = "app-deployment",
    steps = [
      {name = "provision-infrastructure", type = 'provision},
      {name = "install-kubernetes", type = 'task, depends_on = ["provision-infrastructure"]},
      {name = "deploy-application", type = 'task, depends_on = ["install-kubernetes"]},
      {name = "configure-monitoring", type = 'task, depends_on = ["deploy-application"]}
    ]
  }]
}
```

## Parallel Regional Deployment

```nickel
{
  workflows = [{
    name = "global-rollout",
    steps = [
      {name = "deploy-eu", type = 'task},
      {name = "deploy-us", type = 'task},
      {name = "deploy-asia", type = 'task},
      {name = "configure-dns", type = 'configure,
       depends_on = ["deploy-eu", "deploy-us", "deploy-asia"]}
    ]
  }]
}
```

## References

- [Batch Workflows](../infrastructure/batch-workflows.md)
- [Workflow Feature](../features/batch-workflows.md)
