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.