pub trait WorkflowGraph {
// Required methods
fn can_transition(&self, current_phase: &str, target_phase: &str) -> bool;
fn get_phase(&self, phase_id: &str) -> Option<&Phase>;
fn get_start_phase(&self) -> Option<&Phase>;
}Expand description
Trait for querying workflow capability.
Required Methods§
Sourcefn can_transition(&self, current_phase: &str, target_phase: &str) -> bool
fn can_transition(&self, current_phase: &str, target_phase: &str) -> bool
Returns true if a transition exists from current_phase to target_phase.
Sourcefn get_phase(&self, phase_id: &str) -> Option<&Phase>
fn get_phase(&self, phase_id: &str) -> Option<&Phase>
Returns the Phase definition for a given ID.
Sourcefn get_start_phase(&self) -> Option<&Phase>
fn get_start_phase(&self) -> Option<&Phase>
Returns the starting phase of the workflow.