Class WorkflowExecutionHistory


  • public final class WorkflowExecutionHistory
    extends java.lang.Object
    Provides a wrapper with convenience methods over raw protobuf History object representing workflow history
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowExecutionHistory​(io.temporal.api.history.v1.History history)  
    • Constructor Detail

      • WorkflowExecutionHistory

        public WorkflowExecutionHistory​(io.temporal.api.history.v1.History history)
    • Method Detail

      • toJson

        public java.lang.String toJson​(boolean prettyPrint)
        Returns:
        full json that can be used for replay and which is compatible with tctl
      • toProtoText

        public java.lang.String toProtoText​(boolean showWorkflowTasks)
        Returns workflow instance history in a human readable format.
        Parameters:
        showWorkflowTasks - when set to false workflow task events (command events) are not included
      • getWorkflowExecution

        public io.temporal.api.common.v1.WorkflowExecution getWorkflowExecution()
      • getEvents

        public java.util.List<io.temporal.api.history.v1.HistoryEvent> getEvents()
      • getLastEvent

        public io.temporal.api.history.v1.HistoryEvent getLastEvent()
      • getHistory

        public io.temporal.api.history.v1.History getHistory()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object