Skip to main content

WorkflowEngine

Trait WorkflowEngine 

Source
pub trait WorkflowEngine: Send + Sync {
    // Required methods
    fn create_workflow<'life0, 'life1, 'async_trait>(
        &'life0 self,
        definition_name: &'life1 str,
        data: Value,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: '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 update_workflow<'life0, 'life1, 'async_trait>(
        &'life0 self,
        workflow_id: &'life1 str,
        data: Value,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + 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,
        data: Value,
    ) -> Pin<Box<dyn Future<Output = WorkflowResult<TaskState>> + 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;
}
Expand description

Workflow engine trait

Required Methods§

Source

fn create_workflow<'life0, 'life1, 'async_trait>( &'life0 self, definition_name: &'life1 str, data: Value, ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: '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 update_workflow<'life0, 'life1, 'async_trait>( &'life0 self, workflow_id: &'life1 str, data: Value, ) -> Pin<Box<dyn Future<Output = WorkflowResult<WorkflowState>> + 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, data: Value, ) -> Pin<Box<dyn Future<Output = WorkflowResult<TaskState>> + 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,

Implementors§