Skip to main content

WorkflowOrchestrator

Trait WorkflowOrchestrator 

Source
pub trait WorkflowOrchestrator<Input, Output, State>: Send + Sync
where Input: Send + 'static, Output: Send + 'static, State: Send + Sync + 'static,
{ // Required methods fn name(&self) -> &str; fn execute<'life0, 'life1, 'async_trait>( &'life0 self, input: Input, ctx: &'life1 mut SecretaryContext<State>, ) -> Pin<Box<dyn Future<Output = Result<WorkflowResult<Output>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }
Expand description

工作流编排器Trait

用于编排多个阶段处理器,实现复杂的工作流。

Required Methods§

Source

fn name(&self) -> &str

工作流名称

Source

fn execute<'life0, 'life1, 'async_trait>( &'life0 self, input: Input, ctx: &'life1 mut SecretaryContext<State>, ) -> Pin<Box<dyn Future<Output = Result<WorkflowResult<Output>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

执行工作流

Implementors§