Package io.temporal.client
Class WorkflowTargetOptions.Builder
- java.lang.Object
-
- io.temporal.client.WorkflowTargetOptions.Builder
-
- Enclosing class:
- WorkflowTargetOptions
public static final class WorkflowTargetOptions.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowTargetOptionsbuild()WorkflowTargetOptions.BuildersetFirstExecutionRunId(java.lang.String firstExecutionRunId)Sets the runId of the first execution of a workflow.WorkflowTargetOptions.BuildersetRunId(java.lang.String runId)Sets the runId of a specific execution of a workflow.WorkflowTargetOptions.BuildersetWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution execution)Sets both workflowId and runId from a WorkflowExecution object.WorkflowTargetOptions.BuildersetWorkflowId(java.lang.String workflowId)Sets the workflowId of the target workflow.
-
-
-
Method Detail
-
setWorkflowId
public WorkflowTargetOptions.Builder setWorkflowId(java.lang.String workflowId)
Sets the workflowId of the target workflow.
-
setRunId
public WorkflowTargetOptions.Builder setRunId(java.lang.String runId)
Sets the runId of a specific execution of a workflow.
-
setFirstExecutionRunId
public WorkflowTargetOptions.Builder setFirstExecutionRunId(java.lang.String firstExecutionRunId)
Sets the runId of the first execution of a workflow. This is useful for targeting workflows that have been continued as new.
-
setWorkflowExecution
public WorkflowTargetOptions.Builder setWorkflowExecution(io.temporal.api.common.v1.WorkflowExecution execution)
Sets both workflowId and runId from a WorkflowExecution object.
-
build
public WorkflowTargetOptions build()
-
-