pub struct DynamicFlowExecutor { /* private fields */ }Expand description
统一的动态流程执行器
Implementations§
Source§impl DynamicFlowExecutor
impl DynamicFlowExecutor
Sourcepub fn new(config: WorkflowConfig) -> Result<Self>
pub fn new(config: WorkflowConfig) -> Result<Self>
创建新的动态流程执行器
Sourcepub fn with_executor_config(
config: WorkflowConfig,
executor_config: ExecutorConfig,
) -> Result<Self>
pub fn with_executor_config( config: WorkflowConfig, executor_config: ExecutorConfig, ) -> Result<Self>
使用自定义执行器配置创建
Sourcepub async fn execute(
&mut self,
context: SharedContext,
) -> Result<ExecutionResult>
pub async fn execute( &mut self, context: SharedContext, ) -> Result<ExecutionResult>
执行工作流 - 新的分层架构实现
Sourcepub fn get_execution_plan_preview(&self) -> Result<ExecutionPlan>
pub fn get_execution_plan_preview(&self) -> Result<ExecutionPlan>
获取执行计划预览(不执行)
Sourcepub fn analyze_workflow_complexity(&self) -> Result<ExecutionComplexity>
pub fn analyze_workflow_complexity(&self) -> Result<ExecutionComplexity>
分析工作流复杂度
Sourcepub fn validate_workflow(&self) -> Result<()>
pub fn validate_workflow(&self) -> Result<()>
验证工作流配置
Sourcepub fn get_stats(&self) -> &ExecutionStats
pub fn get_stats(&self) -> &ExecutionStats
获取执行统计信息
Sourcepub fn get_workflow_info(&self) -> WorkflowInfo
pub fn get_workflow_info(&self) -> WorkflowInfo
获取工作流信息
Sourcepub fn evaluator(&self) -> &ExpressionEvaluator
pub fn evaluator(&self) -> &ExpressionEvaluator
获取表达式评估器
Sourcepub fn config(&self) -> &WorkflowConfig
pub fn config(&self) -> &WorkflowConfig
获取工作流配置
Sourcepub fn executor_status(&self) -> ExecutorStatus
pub fn executor_status(&self) -> ExecutorStatus
获取执行器状态
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynamicFlowExecutor
impl !RefUnwindSafe for DynamicFlowExecutor
impl Send for DynamicFlowExecutor
impl Sync for DynamicFlowExecutor
impl Unpin for DynamicFlowExecutor
impl !UnwindSafe for DynamicFlowExecutor
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