Declarative orchestration is a paradigm for defining automated workflows where the developer specifies the desired end state and the dependencies between tasks, leaving the underlying workflow engine to determine the optimal execution sequence and handle failures. This contrasts with imperative orchestration, which requires explicitly coding the control flow (e.g., loops, conditionals, and error handling). The engine uses the declarative workflow definition—often expressed as a Directed Acyclic Graph (DAG) or in a Workflow Definition Language (WDL)—to generate and manage the execution plan, automatically handling scheduling, retries, and state persistence.
