Package io.temporal.internal.common
Class WorkflowExecutionHistory
- java.lang.Object
-
- io.temporal.internal.common.WorkflowExecutionHistory
-
public final class WorkflowExecutionHistory extends java.lang.Object
Provides a wrapper with convenience methods over raw protobufHistory
object representing workflow history
-
-
Constructor Summary
Constructors Constructor Description WorkflowExecutionHistory(io.temporal.api.history.v1.History history)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowExecutionHistory
fromJson(java.lang.String serialized)
java.util.List<io.temporal.api.history.v1.HistoryEvent>
getEvents()
io.temporal.api.history.v1.History
getHistory()
io.temporal.api.history.v1.HistoryEvent
getLastEvent()
io.temporal.api.common.v1.WorkflowExecution
getWorkflowExecution()
java.lang.String
toJson(boolean prettyPrint)
java.lang.String
toProtoText(boolean showWorkflowTasks)
Returns workflow instance history in a human readable format.java.lang.String
toString()
-
-
-
Method Detail
-
fromJson
public static WorkflowExecutionHistory fromJson(java.lang.String serialized)
-
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 classjava.lang.Object
-
-