Package io.temporal.workflow
Interface ExternalWorkflowStub
-
public interface ExternalWorkflowStub
Supports signalling and cancelling any workflows by the workflow type and their id. This is useful when an external workflow type is not known at the compile time and to call workflows in other languages.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel()
static <T> ExternalWorkflowStub
fromTyped(T typed)
Extracts untyped ExternalWorkflowStub from a typed workflow stub created throughWorkflow.newExternalWorkflowStub(Class, String)
.io.temporal.api.common.v1.WorkflowExecution
getExecution()
void
signal(java.lang.String signalName, java.lang.Object... args)
-
-
-
Method Detail
-
fromTyped
static <T> ExternalWorkflowStub fromTyped(T typed)
Extracts untyped ExternalWorkflowStub from a typed workflow stub created throughWorkflow.newExternalWorkflowStub(Class, String)
.- Type Parameters:
T
- type of the workflow stub interface- Parameters:
typed
- typed external workflow stub- Returns:
- untyped external workflow stub for the same workflow instance.
-
getExecution
io.temporal.api.common.v1.WorkflowExecution getExecution()
-
signal
void signal(java.lang.String signalName, java.lang.Object... args)
-
cancel
void cancel()
-
-