Package io.temporal.client
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 java.lang.Object
WithStartWorkflowOperation is a start workflow request that can be executed together with an update workflow request. SeeWorkflowClient.startUpdateWithStart(io.temporal.workflow.Functions.Proc, io.temporal.client.UpdateOptions<R>, io.temporal.client.WithStartWorkflowOperation<?>)
andWorkflowClient.executeUpdateWithStart(io.temporal.workflow.Functions.Proc, io.temporal.client.UpdateOptions<R>, io.temporal.client.WithStartWorkflowOperation<?>)
.
-
-
Constructor Summary
Constructors Constructor Description WithStartWorkflowOperation(Functions.Func<R> startMethod)
Creates a newWithStartWorkflowOperation
for a zero argument workflow method.WithStartWorkflowOperation(Functions.Func1<A1,R> startMethod, A1 arg1)
Creates a newWithStartWorkflowOperation
for a one argument workflow method.WithStartWorkflowOperation(Functions.Func2<A1,A2,R> startMethod, A1 arg1, A2 arg2)
Creates a newWithStartWorkflowOperation
for a two argument workflow method.WithStartWorkflowOperation(Functions.Func3<A1,A2,A3,R> startMethod, A1 arg1, A2 arg2, A3 arg3)
Creates a newWithStartWorkflowOperation
for a three argument workflow method.WithStartWorkflowOperation(Functions.Func4<A1,A2,A3,A4,R> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Creates a newWithStartWorkflowOperation
for a four argument workflow method.WithStartWorkflowOperation(Functions.Func5<A1,A2,A3,A4,A5,R> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Creates a newWithStartWorkflowOperation
for a five argument workflow method.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 newWithStartWorkflowOperation
for a six argument workflow method.WithStartWorkflowOperation(Functions.Proc startMethod)
Creates a newWithStartWorkflowOperation
for a zero argument workflow method.WithStartWorkflowOperation(Functions.Proc1<A1> startMethod, A1 arg1)
Creates a newWithStartWorkflowOperation
for a one argument workflow method.WithStartWorkflowOperation(Functions.Proc2<A1,A2> startMethod, A1 arg1, A2 arg2)
Creates a newWithStartWorkflowOperation
for a two argument workflow method.WithStartWorkflowOperation(Functions.Proc3<A1,A2,A3> startMethod, A1 arg1, A2 arg2, A3 arg3)
Creates a newWithStartWorkflowOperation
for a three argument workflow method.WithStartWorkflowOperation(Functions.Proc4<A1,A2,A3,A4> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Creates a newWithStartWorkflowOperation
for a four argument workflow method.WithStartWorkflowOperation(Functions.Proc5<A1,A2,A3,A4,A5> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5)
Creates a newWithStartWorkflowOperation
for a five argument workflow method.WithStartWorkflowOperation(Functions.Proc6<A1,A2,A3,A4,A5,A6> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6)
Creates a newWithStartWorkflowOperation
for a six argument workflow method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
getResult()
Obtains workflow result.java.lang.String
toString()
-
-
-
Constructor Detail
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Func<R> startMethod)
Creates a newWithStartWorkflowOperation
for a zero argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Func1<A1,R> startMethod, A1 arg1)
Creates a newWithStartWorkflowOperation
for a one argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Func2<A1,A2,R> startMethod, A1 arg1, A2 arg2)
Creates a newWithStartWorkflowOperation
for a two argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Func3<A1,A2,A3,R> startMethod, A1 arg1, A2 arg2, A3 arg3)
Creates a newWithStartWorkflowOperation
for a three argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- 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 newWithStartWorkflowOperation
for a four argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- 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 newWithStartWorkflowOperation
for a five argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- fourth workflow method parameterarg5
- 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 newWithStartWorkflowOperation
for a six argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- fourth workflow method parameterarg5
- fifth workflow method parameterarg6
- sixth workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Proc startMethod)
Creates a newWithStartWorkflowOperation
for a zero argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Proc1<A1> startMethod, A1 arg1)
Creates a newWithStartWorkflowOperation
for a one argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Proc2<A1,A2> startMethod, A1 arg1, A2 arg2)
Creates a newWithStartWorkflowOperation
for a two argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Proc3<A1,A2,A3> startMethod, A1 arg1, A2 arg2, A3 arg3)
Creates a newWithStartWorkflowOperation
for a three argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameter
-
WithStartWorkflowOperation
public WithStartWorkflowOperation(Functions.Proc4<A1,A2,A3,A4> startMethod, A1 arg1, A2 arg2, A3 arg3, A4 arg4)
Creates a newWithStartWorkflowOperation
for a four argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- 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 newWithStartWorkflowOperation
for a five argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- fourth workflow method parameterarg5
- 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 newWithStartWorkflowOperation
for a six argument workflow method.- Parameters:
startMethod
- method reference annotated with @WorkflowMethod of a proxy created throughWorkflowClient.newWorkflowStub(Class, WorkflowOptions)
.arg1
- first workflow method parameterarg2
- second workflow method parameterarg3
- third workflow method parameterarg4
- fourth workflow method parameterarg5
- fifth workflow method parameterarg6
- sixth workflow method parameter
-
-
Method Detail
-
getResult
public R getResult()
Obtains workflow result.- Returns:
- the result of the workflow
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-