plexus.cli.procedure.states module
Procedure State Constants
Defines the valid states for a Procedure’s workflow.
NOTE: State transitions are now managed by the ProcedureStateMachine class in state_machine.py. These constants are kept for backwards compatibility and convenience, but validation should use the state machine.
- plexus.cli.procedure.states.get_next_states(current_state: str | None) list[str]
Get the list of valid next states from the current state.
Note: This delegates to the state machine. For new code, use ProcedureStateMachine directly.
- plexus.cli.procedure.states.is_valid_state(state: str) bool
Check if a state string is valid.
Note: For new code, prefer using ProcedureStateMachine for validation.
- plexus.cli.procedure.states.is_valid_transition(from_state: str | None, to_state: str) bool
Check if a state transition is valid.
Note: This delegates to the state machine for proper validation. For new code, use ProcedureStateMachine directly.