pub struct StartWorkflowContext {
pub store: Arc<dyn EventStore>,
pub visibility_store: Arc<dyn VisibilityStore>,
pub catalog: Arc<WorkflowCatalog>,
pub runtime: Arc<RuntimeHandle>,
pub supervision: Arc<SupervisionTree>,
pub registry: Arc<Registry>,
pub signal_handoff: Option<Arc<SignalResumeHandoff>>,
pub search_attribute_schema: Arc<SearchAttributeSchema>,
pub monitor_tokio_handle: Handle,
}Expand description
Dependencies required to start one workflow execution.
Fields§
§store: Arc<dyn EventStore>Durable event store used by the workflow’s single recorder.
visibility_store: Arc<dyn VisibilityStore>Visibility index updated after state-changing workflow events.
catalog: Arc<WorkflowCatalog>Shared workflow catalog resolving types to loaded package versions.
runtime: Arc<RuntimeHandle>Runtime boundary used to spawn the workflow process.
supervision: Arc<SupervisionTree>Structural supervision tree recording the per-type supervisor placement.
registry: Arc<Registry>Active execution registry keyed by workflow/run identifiers.
signal_handoff: Option<Arc<SignalResumeHandoff>>Shared non-resident signal handoff to flush after resident registration.
search_attribute_schema: Arc<SearchAttributeSchema>Schema validating any initial search attributes before they are recorded.
monitor_tokio_handle: HandleTokio handle the spawned workflow’s exit monitor captures for its completion work. Must be epoch-stable — the host runtime’s handle, never an engine-owned task runtime’s — because the monitor outlives the start call and blocks on this handle when the process exits.