Package io.temporal.payload.context
Interface HasWorkflowSerializationContext
-
- All Superinterfaces:
SerializationContext
- All Known Implementing Classes:
ActivitySerializationContext
,WorkflowSerializationContext
public interface HasWorkflowSerializationContext extends SerializationContext
SerializationContext
that contains Namespace and Workflow ID of the Serialization Target.This interface is a convenience interface for users that customize
DataConverter
s. This interface provides a unified API forSerializationContext
implementations that contain information about the Workflow Execution the Serialization Target belongs to. If some Workflow is Serialization target itself, methods of this interface will return information of that workflow.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getNamespace()
java.lang.String
getWorkflowId()
-
-
-
Method Detail
-
getNamespace
java.lang.String getNamespace()
- Returns:
- namespace the workflow execution belongs to
-
getWorkflowId
java.lang.String getWorkflowId()
- 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).
WARNING: When used in the context of a schedule workflow the workflowId may differ on serialization and deserialization.
-
-