Class WorkflowHandle<R>


  • public final class WorkflowHandle<R>
    extends java.lang.Object
    WorkflowHandle is a readonly representation of a workflow run backing a Nexus operation.
    • Method Detail

      • fromWorkflowMethod

        public static <A1,​A2> WorkflowHandle<java.lang.Void> fromWorkflowMethod​(Functions.Proc2<A1,​A2> workflow,
                                                                                      A1 arg1,
                                                                                      A2 arg2)
        Create a handle to a two argument workflow with void return type
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow argument
        arg2 - second workflow argument
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3> WorkflowHandle<java.lang.Void> fromWorkflowMethod​(Functions.Proc3<A1,​A2,​A3> workflow,
                                                                                               A1 arg1,
                                                                                               A2 arg2,
                                                                                               A3 arg3)
        Create a handle to a three argument workflow with void return type
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow argument
        arg2 - second workflow argument
        arg3 - third workflow argument
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4> WorkflowHandle<java.lang.Void> fromWorkflowMethod​(Functions.Proc4<A1,​A2,​A3,​A4> workflow,
                                                                                                        A1 arg1,
                                                                                                        A2 arg2,
                                                                                                        A3 arg3,
                                                                                                        A4 arg4)
        Create a handle to a four argument workflow with void return type
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow argument
        arg2 - second workflow argument
        arg3 - third workflow argument
        arg4 - third workflow argument
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4,​A5> WorkflowHandle<java.lang.Void> fromWorkflowMethod​(Functions.Proc5<A1,​A2,​A3,​A4,​A5> workflow,
                                                                                                                 A1 arg1,
                                                                                                                 A2 arg2,
                                                                                                                 A3 arg3,
                                                                                                                 A4 arg4,
                                                                                                                 A5 arg5)
        Create a handle to a five argument workflow with void return type
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow argument
        arg2 - second workflow argument
        arg3 - third workflow argument
        arg4 - fourth workflow argument
        arg5 - fifth workflow argument
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4,​A5,​A6> WorkflowHandle<java.lang.Void> fromWorkflowMethod​(Functions.Proc6<A1,​A2,​A3,​A4,​A5,​A6> workflow,
                                                                                                                          A1 arg1,
                                                                                                                          A2 arg2,
                                                                                                                          A3 arg3,
                                                                                                                          A4 arg4,
                                                                                                                          A5 arg5,
                                                                                                                          A6 arg6)
        Create a handle to a five argument workflow with void return type
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow argument
        arg2 - second workflow argument
        arg3 - third workflow argument
        arg4 - fourth workflow argument
        arg5 - fifth workflow argument
        arg6 - fifth workflow argument
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​R> WorkflowHandle<R> fromWorkflowMethod​(Functions.Func2<A1,​A2,​R> workflow,
                                                                                 A1 arg1,
                                                                                 A2 arg2)
        Create a handle to a two argument workflow.
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow function parameter
        arg2 - second workflow function parameter
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​R> WorkflowHandle<R> fromWorkflowMethod​(Functions.Func3<A1,​A2,​A3,​R> workflow,
                                                                                          A1 arg1,
                                                                                          A2 arg2,
                                                                                          A3 arg3)
        Create a handle to a three argument workflow.
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow function parameter
        arg2 - second workflow function parameter
        arg3 - third workflow function parameter
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4,​R> WorkflowHandle<R> fromWorkflowMethod​(Functions.Func4<A1,​A2,​A3,​A4,​R> workflow,
                                                                                                   A1 arg1,
                                                                                                   A2 arg2,
                                                                                                   A3 arg3,
                                                                                                   A4 arg4)
        Create a handle to a four argument workflow.
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow function parameter
        arg2 - second workflow function parameter
        arg3 - third workflow function parameter
        arg4 - fourth workflow function parameter
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4,​A5,​R> WorkflowHandle<R> fromWorkflowMethod​(Functions.Func5<A1,​A2,​A3,​A4,​A5,​R> workflow,
                                                                                                            A1 arg1,
                                                                                                            A2 arg2,
                                                                                                            A3 arg3,
                                                                                                            A4 arg4,
                                                                                                            A5 arg5)
        Create a handle to a five argument workflow.
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow function parameter
        arg2 - second workflow function parameter
        arg3 - third workflow function parameter
        arg4 - fourth workflow function parameter
        arg5 - fifth workflow function parameter
        Returns:
        WorkflowHandle
      • fromWorkflowMethod

        public static <A1,​A2,​A3,​A4,​A5,​A6,​R> WorkflowHandle<R> fromWorkflowMethod​(Functions.Func6<A1,​A2,​A3,​A4,​A5,​A6,​R> workflow,
                                                                                                                     A1 arg1,
                                                                                                                     A2 arg2,
                                                                                                                     A3 arg3,
                                                                                                                     A4 arg4,
                                                                                                                     A5 arg5,
                                                                                                                     A6 arg6)
        Create a handle to a six argument workflow.
        Parameters:
        workflow - The only supported value is method reference to a proxy created through WorkflowClient.newWorkflowStub(Class, WorkflowOptions).
        arg1 - first workflow function parameter
        arg2 - second workflow function parameter
        arg3 - third workflow function parameter
        arg4 - fourth workflow function parameter
        arg5 - fifth workflow function parameter
        arg6 - sixth workflow function parameter
        Returns:
        WorkflowHandle
      • fromWorkflowStub

        public static <R> WorkflowHandle<R> fromWorkflowStub​(WorkflowStub stub,
                                                             java.lang.Class<R> resultClass,
                                                             java.lang.Object... args)
        Create a WorkflowHandle from an untyped workflow stub.
        Parameters:
        stub - The workflow stub to use
        resultClass - class of the workflow return value
        args - arguments to start the workflow
        Returns:
        WorkflowHandle