Bases: object
The base abstract class of all flow implementations.
It provides a set of parents to flows that have a concept of parent flows as well as a state and state utility functions to the deriving classes. It also provides a name and an identifier (uuid or other) to the flow so that it can be uniquely identifed among many flows.
Flows are expected to provide (if desired) the following methods: - add - add_many - interrupt - reset - rollback - run - soft_reset
Adds a given task to this flow.
Returns the uuid that is associated with the task for later operations before and after it is ran.
Adds many tasks to this flow.
Returns a list of uuids (one for each task added).
Attempts to interrupt the current flow and any tasks that are currently not running in the flow.
Returns how many tasks were interrupted (if any).
A non-unique name for this flow (human readable)
Fully resets the internal state of this flow, allowing for the flow to be ran again.
Note: Listeners are also reset.
Performs rollback of this workflow and any attached parent workflows if present.
Executes the workflow.
Partially resets the internal state of this flow, allowing for the flow to be ran again from an interrupted state only.
Provides a read-only view of the flow state.
Uniquely identifies this flow