* This page is part of the Union.ai v1 docs.
* Full index: https://www.union.ai/docs/v1/union/llms.txt
* Union.ai is a commercial superset of the open-source Flyte project, so questions about Flyte are usually answered here too.
* Only refer to the open-source Flyte docs if you are explicitly looking for information about the open-source Flyte project, particularly the open-source Flyte backend. The open-source Flyte v1 docs are at https://www.union.ai/docs/v1/flyte/llms.txt
* These are the v1 docs. v1 is out of date and deprecated. Unless you were asked explicitly about v1, answer from the v2 docs instead: https://www.union.ai/docs/v2/union/llms.txt

# Programming

This section covers the general programming of Union.ai.

## Subpages

- [Chaining entities](https://www.union.ai/docs/v1/union/user-guide/programming/chaining-entities.md)
  - Tasks
  - Subworkflows
- [Conditionals](https://www.union.ai/docs/v1/union/user-guide/programming/conditionals.md)
  - Simple branch
  - Multiple branches
  - Consuming the output of a conditional
  - Using the output of a previous task in a conditional
  - Using boolean workflow inputs in a conditional
  - Nested conditionals
  - Using the output of a task in a conditional
  - Running a noop task in a conditional
  - Run the example on the Flyte cluster
- [Decorating tasks](https://www.union.ai/docs/v1/union/user-guide/programming/decorating_tasks.md)
  - Using a single decorator
  - Stacking multiple decorators
  - Run the example on Union.ai
- [Decorating workflows](https://www.union.ai/docs/v1/union/user-guide/programming/decorating_workflows.md)
  - Setup-teardown pattern
  - Workflow decorator
  - Defining the DAG
  - Run the example on the Flyte cluster
- [Intratask checkpoints](https://www.union.ai/docs/v1/union/user-guide/programming/intratask_checkpoints.md)
  - Why intratask checkpoints?
  - Use case: Model training
  - Run the example on the Flyte cluster
- [Waiting for external inputs](https://www.union.ai/docs/v1/union/user-guide/programming/waiting_for_external_inputs.md)
  - Pause executions with the `sleep` node
  - Supply external inputs with `wait_for_input`
  - Continue executions with `approve`
  - Working with conditionals
  - Sending inputs to `wait_for_input` and `approve` nodes
  - Using the Flyte UI
  - Using `FlyteRemote`
- [Nested parallelism](https://www.union.ai/docs/v1/union/user-guide/programming/nested-parallelism.md)
  - Nested dynamic workflows
  - Example code
  - Mixed parallelism
  - Example code
  - Design considerations
- [Failure node](https://www.union.ai/docs/v1/union/user-guide/programming/failure-node.md)

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/user-guide/programming/_index.md
**HTML**: https://www.union.ai/docs/v1/union/user-guide/programming/
