Workflows

class edgy.workflow.Workflow[source]

A Workflow is a coherent set of Transitions meant to define a state machine system.

add_transition(transition, name=None)[source]

Add a transition to this workflow instance, to be used on stateful subjects later.

Parameters:transition (edgy.workflow.Transition) – Transition to add.
states

Set of valid known states for this workflow. Beware, if you’re using wildcard as source, there can be states you expect as valid that this instance does not know about, and will treat as invalid.

Returns:set[str]
transitions

Set of transitions living in this state machine system.

Returns:set[edgy.workflow.Transition]