pub trait WorkflowContext<E>: Send + Sync {
// Required methods
fn entity(&self) -> &E;
fn set_var(&mut self, key: &str, value: Value);
fn get_var(&self, key: &str) -> Option<&Value>;
}๐Deprecated since 3.16.0:
nothing used it; declared workflows run through backbone_core::workflow (WorkflowSpec, WorkflowDefinition and WorkflowEngine)
Expand description
Workflow execution context for an entity E.
Required Methodsยง
fn entity(&self) -> &E
๐Deprecated since 3.16.0:
nothing used it; declared workflows run through backbone_core::workflow (WorkflowSpec, WorkflowDefinition and WorkflowEngine)
fn set_var(&mut self, key: &str, value: Value)
๐Deprecated since 3.16.0:
nothing used it; declared workflows run through backbone_core::workflow (WorkflowSpec, WorkflowDefinition and WorkflowEngine)
fn get_var(&self, key: &str) -> Option<&Value>
๐Deprecated since 3.16.0:
nothing used it; declared workflows run through backbone_core::workflow (WorkflowSpec, WorkflowDefinition and WorkflowEngine)
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".