Class WithStartWorkflowOperation<R>

java.lang.Object
io.temporal.client.WithStartWorkflowOperation<R>
Type Parameters:
R - type of the workflow result

public final class WithStartWorkflowOperation<R> extends Object
  • Constructor Details

    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func<R> startMethod)
      Creates a new WithStartWorkflowOperation for a zero argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func1<A1,R> startMethod, A1 arg1)
      Creates a new WithStartWorkflowOperation for a one argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func2<A1,A2,R> startMethod, A1 arg1, A2 arg2)
      Creates a new WithStartWorkflowOperation for a two argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func3<A1,A2,A3,R> startMethod, A1 arg1, A2 arg2, A3 arg3)
      Creates a new WithStartWorkflowOperation for a three argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func4<A1,A2,A3,A4,R> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
      Creates a new WithStartWorkflowOperation for a four argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func5<A1,A2,A3,A4,A5,R> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
      Creates a new WithStartWorkflowOperation for a five argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
      arg5 - fifth workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Func6<A1,A2,A3,A4,A5,A6,R> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
      Creates a new WithStartWorkflowOperation for a six argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
      arg5 - fifth workflow method parameter
      arg6 - sixth workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc startMethod)
      Creates a new WithStartWorkflowOperation for a zero argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc1<A1> startMethod, A1 arg1)
      Creates a new WithStartWorkflowOperation for a one argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc2<A1,A2> startMethod, A1 arg1, A2 arg2)
      Creates a new WithStartWorkflowOperation for a two argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc3<A1,A2,A3> startMethod, A1 arg1, A2 arg2, A3 arg3)
      Creates a new WithStartWorkflowOperation for a three argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc4<A1,A2,A3,A4> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
      Creates a new WithStartWorkflowOperation for a four argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc5<A1,A2,A3,A4,A5> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
      Creates a new WithStartWorkflowOperation for a five argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
      arg5 - fifth workflow method parameter
    • WithStartWorkflowOperation

      public WithStartWorkflowOperation(Functions.Proc6<A1,A2,A3,A4,A5,A6> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
      Creates a new WithStartWorkflowOperation for a six argument workflow method.
      Parameters:
      startMethod - method reference annotated with @WorkflowMethod of a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
      arg1 - first workflow method parameter
      arg2 - second workflow method parameter
      arg3 - third workflow method parameter
      arg4 - fourth workflow method parameter
      arg5 - fifth workflow method parameter
      arg6 - sixth workflow method parameter
  • Method Details

    • getResult

      public R getResult()
      Obtains workflow result.
      Returns:
      the result of the workflow
    • toString

      public String toString()
      Overrides:
      toString in class Object