WorkflowEngineInterface

Trait WorkflowEngineInterface 

Source
pub trait WorkflowEngineInterface: Send + Sync {
    // Required methods
    fn start_workflow<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workflow: &'life1 WorkflowIR,
        context: Value,
    ) -> Pin<Box<dyn Future<Output = Result<WorkflowExecutionId, WorkflowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_execution<'life0, 'life1, 'async_trait>(
        &'life0 self,
        execution_id: &'life1 WorkflowExecutionId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_executions<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn cancel_execution<'life0, 'life1, 'async_trait>(
        &'life0 self,
        execution_id: &'life1 WorkflowExecutionId,
    ) -> Pin<Box<dyn Future<Output = Result<(), WorkflowError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Workflow engine interface

Required Methods§

Source

fn start_workflow<'life0, 'life1, 'async_trait>( &'life0 self, workflow: &'life1 WorkflowIR, context: Value, ) -> Pin<Box<dyn Future<Output = Result<WorkflowExecutionId, WorkflowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_execution<'life0, 'life1, 'async_trait>( &'life0 self, execution_id: &'life1 WorkflowExecutionId, ) -> Pin<Box<dyn Future<Output = Result<Option<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_executions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<WorkflowExecution>, WorkflowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn cancel_execution<'life0, 'life1, 'async_trait>( &'life0 self, execution_id: &'life1 WorkflowExecutionId, ) -> Pin<Box<dyn Future<Output = Result<(), WorkflowError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§