DESCRIPTION
This class represents state in the workflow.
You can add new states, and modify the workflow definition.
You can delete states, but this may invalidate any instance rels which rely on them. Use foreign key constraints to enforce a valid workflow definition with respect to currently instantiated workflow items.
In your implementation your state class would probably have a name column, and additional metadata for UI purposes.
RELATIONSHIPS
- transitions
-
All the transitions that are applicable in this state. Foo::DB::Workflow::Transition.
METHODS
- has_transition
- has_transitions
-
Required by the abstract role Class::Workflow::State.
These will query the
transitionsrel.