Class WorkflowSerializationContext

    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowSerializationContext

        public WorkflowSerializationContext​(@Nonnull
                                            java.lang.String namespace,
                                            @Nonnull
                                            java.lang.String workflowId)
    • Method Detail

      • getWorkflowId

        @Nonnull
        public java.lang.String getWorkflowId()
        Specified by:
        getWorkflowId in interface HasWorkflowSerializationContext
        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.