Class WorkflowClientHelper


  • public final class WorkflowClientHelper
    extends java.lang.Object
    Contains different methods that could but didn't become a part of the main WorkflowClient, mostly because they shouldn't be a part of normal usage and exist for tests / debug only.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.temporal.api.workflow.v1.WorkflowExecutionInfo describeWorkflowInstance​(io.temporal.serviceclient.WorkflowServiceStubs service, java.lang.String namespace, io.temporal.api.common.v1.WorkflowExecution workflowExecution, com.uber.m3.tally.Scope metricsScope)  
      static java.util.Iterator<io.temporal.api.history.v1.HistoryEvent> getHistory​(io.temporal.serviceclient.WorkflowServiceStubs service, java.lang.String namespace, io.temporal.api.common.v1.WorkflowExecution workflowExecution, com.uber.m3.tally.Scope metricsScope)  
      static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse getHistoryPage​(io.temporal.serviceclient.WorkflowServiceStubs service, java.lang.String namespace, io.temporal.api.common.v1.WorkflowExecution workflowExecution, com.google.protobuf.ByteString nextPageToken, com.uber.m3.tally.Scope metricsScope)  
      static java.lang.String prettyPrintHistory​(io.temporal.serviceclient.WorkflowServiceStubs service, java.lang.String namespace, io.temporal.api.common.v1.WorkflowExecution workflowExecution, boolean showWorkflowTasks, com.uber.m3.tally.Scope metricsScope)
      Returns workflow instance history in a human readable format.
      static java.lang.String prettyPrintHistory​(io.temporal.serviceclient.WorkflowServiceStubs service, java.lang.String namespace, io.temporal.api.common.v1.WorkflowExecution workflowExecution, com.uber.m3.tally.Scope metricsScope)
      Returns workflow instance history in a human readable format.
      • Methods inherited from class java.lang.Object

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

      • WorkflowClientHelper

        public WorkflowClientHelper()
    • Method Detail

      • prettyPrintHistory

        public static java.lang.String prettyPrintHistory​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                                          java.lang.String namespace,
                                                          io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                          com.uber.m3.tally.Scope metricsScope)
        Returns workflow instance history in a human readable format.
      • prettyPrintHistory

        public static java.lang.String prettyPrintHistory​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                                          java.lang.String namespace,
                                                          io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                          boolean showWorkflowTasks,
                                                          com.uber.m3.tally.Scope metricsScope)
        Returns workflow instance history in a human readable format.
        Parameters:
        showWorkflowTasks - when set to false workflow task events (command events) are not included
        metricsScope -
      • getHistory

        public static java.util.Iterator<io.temporal.api.history.v1.HistoryEvent> getHistory​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                                                                             java.lang.String namespace,
                                                                                             io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                                                             com.uber.m3.tally.Scope metricsScope)
      • getHistoryPage

        public static io.temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse getHistoryPage​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                                                                                            java.lang.String namespace,
                                                                                                            io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                                                                            com.google.protobuf.ByteString nextPageToken,
                                                                                                            com.uber.m3.tally.Scope metricsScope)
      • describeWorkflowInstance

        public static io.temporal.api.workflow.v1.WorkflowExecutionInfo describeWorkflowInstance​(io.temporal.serviceclient.WorkflowServiceStubs service,
                                                                                                 java.lang.String namespace,
                                                                                                 io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                                                                 com.uber.m3.tally.Scope metricsScope)