Class WorkflowSerializationContext
java.lang.Object
io.temporal.payload.context.WorkflowSerializationContext
- All Implemented Interfaces:
HasWorkflowSerializationContext,SerializationContext
@Experimental
public class WorkflowSerializationContext
extends Object
implements HasWorkflowSerializationContext
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WorkflowSerializationContext
-
-
Method Details
-
getNamespace
- Specified by:
getNamespacein interfaceHasWorkflowSerializationContext- Returns:
- namespace the workflow execution belongs to
-
getWorkflowId
- Specified by:
getWorkflowIdin interfaceHasWorkflowSerializationContext- Returns:
- workflowId of the Workflow Execution the Serialization Target belongs to. If the Target
is a Workflow itself, this method will return the Target's Workflow ID (not the ID of the
parent workflow). Returns
nullfor standalone activities (not associated with a workflow).WARNING: When used in the context of a schedule workflow the workflowId may differ on serialization and deserialization.
-