Skip to main content

WorkflowApi

Trait WorkflowApi 

Source
pub trait WorkflowApi: Send + Sync {
    // Required methods
    fn create_workflow<'life0, 'async_trait>(
        &'life0 self,
        req: CreateWorkflowRequest,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_workflow<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workflow_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_tasks<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workflow_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<Vec<TaskState>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn complete_task<'life0, 'life1, 'async_trait>(
        &'life0 self,
        task_id: &'life1 str,
        req: CompleteTaskRequest,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<TaskState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Workflow API trait

Required Methods§

Source

fn create_workflow<'life0, 'async_trait>( &'life0 self, req: CreateWorkflowRequest, ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_workflow<'life0, 'life1, 'async_trait>( &'life0 self, workflow_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_tasks<'life0, 'life1, 'async_trait>( &'life0 self, workflow_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = WorkflowResult<Vec<TaskState>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn complete_task<'life0, 'life1, 'async_trait>( &'life0 self, task_id: &'life1 str, req: CompleteTaskRequest, ) -> Pin<Box<dyn Future<Output = WorkflowResult<TaskState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§