WorkflowContext#

class openstef_models.mixins.callbacks.WorkflowContext[W](*, workflow: W, data: dict[str, ~typing.Any]=<factory>)[source]

Bases: BaseModel, Generic[W]

Context object for workflow execution state.

Holds the current workflow instance and provides storage for additional data that needs to be passed between workflow stages or shared with callbacks.

Parameters:
workflow: W
data: dict[str, Any]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'protected_namespaces': (), 'ser_json_inf_nan': 'null'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].