pub struct WorkflowExecutor { /* private fields */ }Expand description
Workflow execution engine
Implementations§
Source§impl WorkflowExecutor
impl WorkflowExecutor
Sourcepub fn with_registry(registry: ComponentRegistry) -> Self
pub fn with_registry(registry: ComponentRegistry) -> Self
Create executor with custom registry
Sourcepub fn validate_workflow(
&self,
workflow: &WorkflowDefinition,
) -> ValidationResult
pub fn validate_workflow( &self, workflow: &WorkflowDefinition, ) -> ValidationResult
Validate a workflow
Sourcepub fn check_circular_dependencies(
&self,
workflow: &WorkflowDefinition,
) -> Result<(), String>
pub fn check_circular_dependencies( &self, workflow: &WorkflowDefinition, ) -> Result<(), String>
Check for circular dependencies
Sourcepub fn determine_execution_order(
&self,
workflow: &WorkflowDefinition,
) -> SklResult<Vec<String>>
pub fn determine_execution_order( &self, workflow: &WorkflowDefinition, ) -> SklResult<Vec<String>>
Determine execution order using topological sort
Sourcepub fn execute_workflow(
&mut self,
workflow: WorkflowDefinition,
) -> SklResult<ExecutionResult>
pub fn execute_workflow( &mut self, workflow: WorkflowDefinition, ) -> SklResult<ExecutionResult>
Execute a workflow
Sourcepub fn get_statistics(&self) -> &ExecutionStatistics
pub fn get_statistics(&self) -> &ExecutionStatistics
Get execution statistics
Trait Implementations§
Source§impl Debug for WorkflowExecutor
impl Debug for WorkflowExecutor
Auto Trait Implementations§
impl Freeze for WorkflowExecutor
impl RefUnwindSafe for WorkflowExecutor
impl Send for WorkflowExecutor
impl Sync for WorkflowExecutor
impl Unpin for WorkflowExecutor
impl UnwindSafe for WorkflowExecutor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more