pub fn resolve_execution_order(
operations: &[BatchOperation],
) -> Result<ExecutionOrder, Error>Expand description
Validates the batch operations and returns a topological execution order.
§Validation rules
- Every operation that uses
capture,capture_append, ordepends_onmust have anid. - Every
depends_onreference must point to an existing operationid. - Implicit dependencies from
{{variable}}usage are inferred fromcapture/capture_append. - The resulting dependency graph must be acyclic.
§Errors
Returns an error if any validation rule is violated or a cycle is detected.