Skip to main content

WorkflowContext

Trait WorkflowContext 

Source
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ยง

Source

fn entity(&self) -> &E

๐Ÿ‘ŽDeprecated since 3.16.0:

nothing used it; declared workflows run through backbone_core::workflow (WorkflowSpec, WorkflowDefinition and WorkflowEngine)

Source

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)

Source

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".

Implementorsยง