Package io.temporal.client.schedules
Class ScheduleActionStartWorkflow
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleAction
-
- io.temporal.client.schedules.ScheduleActionStartWorkflow
-
public final class ScheduleActionStartWorkflow extends ScheduleAction
Schedule action to start a workflow.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScheduleActionStartWorkflow.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodedValues
getArguments()
Arguments for the workflow.Header
getHeader()
Get the headers that will be sent with each workflow scheduled.WorkflowOptions
getOptions()
Get the workflow options used.java.lang.String
getWorkflowType()
Get the workflow type name.static ScheduleActionStartWorkflow.Builder
newBuilder()
static ScheduleActionStartWorkflow.Builder
newBuilder(ScheduleActionStartWorkflow options)
-
-
-
Method Detail
-
newBuilder
public static ScheduleActionStartWorkflow.Builder newBuilder()
-
newBuilder
public static ScheduleActionStartWorkflow.Builder newBuilder(ScheduleActionStartWorkflow options)
-
getWorkflowType
public java.lang.String getWorkflowType()
Get the workflow type name.- Returns:
- the workflow type name.
-
getOptions
public WorkflowOptions getOptions()
Get the workflow options used. NoteWorkflowOptions.getMemo()
every value here is an instance ofEncodedValues
. To access, callEncodedValues.get(int, java.lang.Class<T>)
with an index of 0.- Returns:
- workflow options used for the scheduled workflows.
-
getHeader
public Header getHeader()
Get the headers that will be sent with each workflow scheduled.- Returns:
- headers to be sent
-
getArguments
public EncodedValues getArguments()
Arguments for the workflow.- Returns:
- the arguments used for the scheduled workflows.
-
-