Odyssey.Workflow (odyssey v0.1.0)
View SourceA workflow is a sequence of phases that are executed in order.
Summary
Types
@type id() :: term()
@type t() :: [Odyssey.Phase.t()]
Functions
@spec jump_to(id(), non_neg_integer()) :: Odyssey.DB.WorkflowRun.t() | nil
@spec run_next_phase(Odyssey.DB.WorkflowRun.t()) :: Odyssey.DB.WorkflowRun.t()
@spec start(t(), Odyssey.State.t()) :: Odyssey.DB.WorkflowRun.t()
@spec stop(id()) :: Odyssey.DB.WorkflowRun.t() | nil