Skip to main content

WorkflowOps

Trait WorkflowOps 

Source
pub trait WorkflowOps: Send + Sync {
    // Required methods
    fn definitions(&self) -> Value;
    fn start(&self, name: &str, input: Value) -> Result<String, String>;
    fn list(&self, status_filter: Option<&str>) -> Value;
    fn get(&self, id: &str) -> Option<Value>;
    fn advance(&self, id: &str) -> Result<String, String>;
    fn send_event(
        &self,
        id: &str,
        event: &str,
        data: Value,
    ) -> Result<(), String>;
    fn cancel(&self, id: &str) -> Result<(), String>;
}
Expand description

Workflow engine operations used by the router.

Required Methods§

Source

fn definitions(&self) -> Value

Source

fn start(&self, name: &str, input: Value) -> Result<String, String>

Source

fn list(&self, status_filter: Option<&str>) -> Value

Source

fn get(&self, id: &str) -> Option<Value>

Source

fn advance(&self, id: &str) -> Result<String, String>

Source

fn send_event(&self, id: &str, event: &str, data: Value) -> Result<(), String>

Source

fn cancel(&self, id: &str) -> Result<(), String>

Implementors§