Package io.temporal.workflow
Interface ChildWorkflowStub
-
public interface ChildWorkflowStub
Supports starting and signalling child workflows by the name and list of arguments. This is useful when a child workflow type is not known at the compile time and to call child workflows in other languages.- See Also:
Workflow.newChildWorkflowStub(Class)
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> R
execute(java.lang.Class<R> resultClass, java.lang.Object... args)
<R> R
execute(java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
<R> Promise<R>
executeAsync(java.lang.Class<R> resultClass, java.lang.Object... args)
<R> Promise<R>
executeAsync(java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
static <T> ChildWorkflowStub
fromTyped(T typed)
Extracts untyped WorkflowStub from a typed workflow stub created throughWorkflow.newChildWorkflowStub(Class)
.Promise<io.temporal.api.common.v1.WorkflowExecution>
getExecution()
If workflow completes before this promise is ready then the child might not start at all.ChildWorkflowOptions
getOptions()
java.lang.String
getWorkflowType()
void
signal(java.lang.String signalName, java.lang.Object... args)
-
-
-
Method Detail
-
fromTyped
static <T> ChildWorkflowStub fromTyped(T typed)
Extracts untyped WorkflowStub from a typed workflow stub created throughWorkflow.newChildWorkflowStub(Class)
.- Type Parameters:
T
- type of the workflow stub interface- Parameters:
typed
- typed workflow stub- Returns:
- untyped workflow stub for the same workflow instance.
-
getWorkflowType
java.lang.String getWorkflowType()
-
getExecution
Promise<io.temporal.api.common.v1.WorkflowExecution> getExecution()
If workflow completes before this promise is ready then the child might not start at all.- Returns:
- promise that becomes ready once the child has started.
-
getOptions
ChildWorkflowOptions getOptions()
-
execute
<R> R execute(java.lang.Class<R> resultClass, java.lang.Object... args)
-
execute
<R> R execute(java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
-
executeAsync
<R> Promise<R> executeAsync(java.lang.Class<R> resultClass, java.lang.Object... args)
-
executeAsync
<R> Promise<R> executeAsync(java.lang.Class<R> resultClass, java.lang.reflect.Type resultType, java.lang.Object... args)
-
signal
void signal(java.lang.String signalName, java.lang.Object... args)
-
-