pub struct ConditionEvaluator;Expand description
Evaluates conditions and determines branching paths
Handles:
- Evaluating condition expressions based on previous step results
- Determining which branch (then or else) to execute
- Supporting nested conditions
Implementations§
Source§impl ConditionEvaluator
impl ConditionEvaluator
Sourcepub fn evaluate_condition(
workflow: &Workflow,
state: &WorkflowState,
condition_step: &ConditionStep,
) -> WorkflowResult<Vec<String>>
pub fn evaluate_condition( workflow: &Workflow, state: &WorkflowState, condition_step: &ConditionStep, ) -> WorkflowResult<Vec<String>>
Evaluate a condition step and determine the execution path
Returns the list of step IDs to execute based on the condition evaluation. If condition is true, returns then_steps; otherwise returns else_steps.
Sourcepub fn get_next_steps(
workflow: &Workflow,
state: &WorkflowState,
condition_step: &ConditionStep,
) -> WorkflowResult<Vec<String>>
pub fn get_next_steps( workflow: &Workflow, state: &WorkflowState, condition_step: &ConditionStep, ) -> WorkflowResult<Vec<String>>
Get the next steps to execute after a condition
Returns the list of step IDs that should be executed based on the condition result.
Auto Trait Implementations§
impl Freeze for ConditionEvaluator
impl RefUnwindSafe for ConditionEvaluator
impl Send for ConditionEvaluator
impl Sync for ConditionEvaluator
impl Unpin for ConditionEvaluator
impl UnwindSafe for ConditionEvaluator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more