Class WorkflowExecutionHistory

java.lang.Object
io.temporal.internal.common.WorkflowExecutionHistory
io.temporal.common.WorkflowExecutionHistory

public final class WorkflowExecutionHistory extends WorkflowExecutionHistory
Provides a wrapper with convenience methods over raw protobuf History object representing workflow history
  • Constructor Details

    • WorkflowExecutionHistory

      public WorkflowExecutionHistory(io.temporal.api.history.v1.History history)
      Parameters:
      history - raw history object to enrich
    • WorkflowExecutionHistory

      public WorkflowExecutionHistory(io.temporal.api.history.v1.History history, String workflowId)
      WorkflowId is not persisted in workflow history, and sometimes it may be important to have it set (workflow replay may rely on it if WorkflowExecutionHistory is used for a history replay)
      Parameters:
      history - raw history object to enrich
      workflowId - workflow id to be used in getWorkflowExecution()
  • Method Details