# Functions
AddJob adds a new job (representing a State) to the Workflow.
CopyWorkflow creates a copy of an existing Worflow including WorkflowID
This is used to save sligtly different copies of Workflows in the store.
CopyWorkflowDefinition creates a copy of an existing WorflowDefinition with the same name and version, but a new ID.
IsDone can be used check if a task's state is expected to change true if the task is in a final state; false if its status might still change.
No description provided by the author
KitchenSinkWorkflowDefinition returns a WorkflowDefinition resource to use for tests.
NewJob creates a new Job.
No description provided by the author
NewWorkflow creates a new Workflow struct for a WorkflowDefinition.
NewWorkflowDefinition creates a new Workflow.
No description provided by the author
RemoveInactiveStates discards all states not reachable in the graph after the StartAt state Assumes that startAt and the states are valid.
No description provided by the author
WorkflowIsDone can be used check if a workflow's state is expected to change true if the workflow is in a final state; false if its status might still change.
WorkflowStatusIsDone return true if a workflow's status is a final state (cancelled, failed, succeeded).
StatusToInt converts a WorkflowStatus to an integer.
# Constants
StatusReasonJobTimedOut contains extra information for status reasons for workflows & jobs.
StatusReasonWorkflowTimedOut contains extra information for status reasons for workflows & jobs.