Class TestServiceUtils


  • public class TestServiceUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse pollWorkflowTaskQueue​(java.lang.String namespace, io.temporal.api.taskqueue.v1.TaskQueue taskqueue, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void respondWorkflowTaskCompletedWithSticky​(com.google.protobuf.ByteString taskToken, io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void respondWorkflowTaskCompletedWithSticky​(com.google.protobuf.ByteString taskToken, io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue, java.time.Duration startToCloseTimeout, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void respondWorkflowTaskFailedWithSticky​(com.google.protobuf.ByteString taskToken, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void signalWorkflow​(io.temporal.api.common.v1.WorkflowExecution workflowExecution, java.lang.String namespace, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void startWorkflowExecution​(java.lang.String namespace, java.lang.String taskqueueName, java.lang.String workflowType, io.temporal.serviceclient.WorkflowServiceStubs service)  
      static void startWorkflowExecution​(java.lang.String namespace, java.lang.String taskqueueName, java.lang.String workflowType, java.time.Duration workflowRunTimeout, java.time.Duration workflowTaskTimeout, io.temporal.serviceclient.WorkflowServiceStubs service)  
      • Methods inherited from class java.lang.Object

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

      • startWorkflowExecution

        public static void startWorkflowExecution​(java.lang.String namespace,
                                                  java.lang.String taskqueueName,
                                                  java.lang.String workflowType,
                                                  io.temporal.serviceclient.WorkflowServiceStubs service)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • startWorkflowExecution

        public static void startWorkflowExecution​(java.lang.String namespace,
                                                  java.lang.String taskqueueName,
                                                  java.lang.String workflowType,
                                                  java.time.Duration workflowRunTimeout,
                                                  java.time.Duration workflowTaskTimeout,
                                                  io.temporal.serviceclient.WorkflowServiceStubs service)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • respondWorkflowTaskCompletedWithSticky

        public static void respondWorkflowTaskCompletedWithSticky​(com.google.protobuf.ByteString taskToken,
                                                                  io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue,
                                                                  io.temporal.serviceclient.WorkflowServiceStubs service)
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • respondWorkflowTaskCompletedWithSticky

        public static void respondWorkflowTaskCompletedWithSticky​(com.google.protobuf.ByteString taskToken,
                                                                  io.temporal.api.taskqueue.v1.TaskQueue stickyTaskQueue,
                                                                  java.time.Duration startToCloseTimeout,
                                                                  io.temporal.serviceclient.WorkflowServiceStubs service)
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • respondWorkflowTaskFailedWithSticky

        public static void respondWorkflowTaskFailedWithSticky​(com.google.protobuf.ByteString taskToken,
                                                               io.temporal.serviceclient.WorkflowServiceStubs service)
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • pollWorkflowTaskQueue

        public static io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse pollWorkflowTaskQueue​(java.lang.String namespace,
                                                                                                             io.temporal.api.taskqueue.v1.TaskQueue taskqueue,
                                                                                                             io.temporal.serviceclient.WorkflowServiceStubs service)
                                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • signalWorkflow

        public static void signalWorkflow​(io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                          java.lang.String namespace,
                                          io.temporal.serviceclient.WorkflowServiceStubs service)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception