Package io.temporal.payload.context
Class WorkflowSerializationContext
- java.lang.Object
-
- io.temporal.payload.context.WorkflowSerializationContext
-
- All Implemented Interfaces:
HasWorkflowSerializationContext
,SerializationContext
public class WorkflowSerializationContext extends java.lang.Object implements HasWorkflowSerializationContext
-
-
Constructor Summary
Constructors Constructor Description WorkflowSerializationContext(java.lang.String namespace, java.lang.String workflowId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNamespace()
java.lang.String
getWorkflowId()
-
-
-
Method Detail
-
getNamespace
@Nonnull public java.lang.String getNamespace()
- Specified by:
getNamespace
in interfaceHasWorkflowSerializationContext
- Returns:
- namespace the workflow execution belongs to
-
getWorkflowId
@Nonnull public java.lang.String getWorkflowId()
- Specified by:
getWorkflowId
in 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).
WARNING: When used in the context of a schedule workflow the workflowId may differ on serialization and deserialization.
-
-