pub trait WorkflowDispatch: Send + Sync {
// Required methods
fn get_info(&self, workflow_name: &str) -> Option<WorkflowInfo>;
fn start_by_name(
&self,
workflow_name: &str,
input: Value,
owner_subject: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<Uuid>> + Send + '_>>;
}Expand description
Trait for starting workflows from function contexts.
This trait allows mutation and action contexts to start workflows without directly depending on the runtime’s WorkflowExecutor.
Required Methods§
Sourcefn get_info(&self, workflow_name: &str) -> Option<WorkflowInfo>
fn get_info(&self, workflow_name: &str) -> Option<WorkflowInfo>
Get workflow info by name for auth checking.