class SerializationContext(ABC): (source)
Known subclasses: temporalio.converter.BaseWorkflowSerializationContext
Base serialization context.
Provides contextual information during serialization and deserialization operations.
Examples
In client code, when starting a workflow, or sending a signal/update/query to a workflow,
or receiving the result of an update/query, or handling an exception from a workflow, the
context type is WorkflowSerializationContext
and the workflow ID set of the
target workflow will be set in the context.
In workflow code, when operating on a payload being sent/received to/from a child workflow,
or handling an exception from a child workflow, the context type is
WorkflowSerializationContext
and the workflow ID is that of the child workflow,
not of the currently executing (i.e. parent) workflow.
In workflow code, when operating on a payload to be sent/received to/from an activity, the
context type is ActivitySerializationContext
and the workflow ID is that of the
currently-executing workflow. ActivitySerializationContext is also set on data converter
operations in the activity context.