Class ActivityTask
- java.lang.Object
-
- com.amazonaws.services.simpleworkflow.model.ActivityTask
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ActivityTask extends Object implements Serializable, Cloneable
Unit of work sent to an activity worker.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivityTaskclone()booleanequals(Object obj)StringgetActivityId()The unique ID of the task.ActivityTypegetActivityType()The type of this activity task.StringgetInput()The inputs provided when the activity task was scheduled.LonggetStartedEventId()The ID of theActivityTaskStartedevent recorded in the history.StringgetTaskToken()The opaque string used as a handle on the task.WorkflowExecutiongetWorkflowExecution()The workflow execution that started this activity task.inthashCode()voidsetActivityId(String activityId)The unique ID of the task.voidsetActivityType(ActivityType activityType)The type of this activity task.voidsetInput(String input)The inputs provided when the activity task was scheduled.voidsetStartedEventId(Long startedEventId)The ID of theActivityTaskStartedevent recorded in the history.voidsetTaskToken(String taskToken)The opaque string used as a handle on the task.voidsetWorkflowExecution(WorkflowExecution workflowExecution)The workflow execution that started this activity task.StringtoString()Returns a string representation of this object; useful for testing and debugging.ActivityTaskwithActivityId(String activityId)The unique ID of the task.ActivityTaskwithActivityType(ActivityType activityType)The type of this activity task.ActivityTaskwithInput(String input)The inputs provided when the activity task was scheduled.ActivityTaskwithStartedEventId(Long startedEventId)The ID of theActivityTaskStartedevent recorded in the history.ActivityTaskwithTaskToken(String taskToken)The opaque string used as a handle on the task.ActivityTaskwithWorkflowExecution(WorkflowExecution workflowExecution)The workflow execution that started this activity task.
-
-
-
Method Detail
-
setTaskToken
public void setTaskToken(String taskToken)
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
- Parameters:
taskToken- The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
-
getTaskToken
public String getTaskToken()
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
- Returns:
- The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
-
withTaskToken
public ActivityTask withTaskToken(String taskToken)
The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.
- Parameters:
taskToken- The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActivityId
public void setActivityId(String activityId)
The unique ID of the task.
- Parameters:
activityId- The unique ID of the task.
-
getActivityId
public String getActivityId()
The unique ID of the task.
- Returns:
- The unique ID of the task.
-
withActivityId
public ActivityTask withActivityId(String activityId)
The unique ID of the task.
- Parameters:
activityId- The unique ID of the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStartedEventId
public void setStartedEventId(Long startedEventId)
The ID of the
ActivityTaskStartedevent recorded in the history.- Parameters:
startedEventId- The ID of theActivityTaskStartedevent recorded in the history.
-
getStartedEventId
public Long getStartedEventId()
The ID of the
ActivityTaskStartedevent recorded in the history.- Returns:
- The ID of the
ActivityTaskStartedevent recorded in the history.
-
withStartedEventId
public ActivityTask withStartedEventId(Long startedEventId)
The ID of the
ActivityTaskStartedevent recorded in the history.- Parameters:
startedEventId- The ID of theActivityTaskStartedevent recorded in the history.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setWorkflowExecution
public void setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
- Parameters:
workflowExecution- The workflow execution that started this activity task.
-
getWorkflowExecution
public WorkflowExecution getWorkflowExecution()
The workflow execution that started this activity task.
- Returns:
- The workflow execution that started this activity task.
-
withWorkflowExecution
public ActivityTask withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
- Parameters:
workflowExecution- The workflow execution that started this activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActivityType
public void setActivityType(ActivityType activityType)
The type of this activity task.
- Parameters:
activityType- The type of this activity task.
-
getActivityType
public ActivityType getActivityType()
The type of this activity task.
- Returns:
- The type of this activity task.
-
withActivityType
public ActivityTask withActivityType(ActivityType activityType)
The type of this activity task.
- Parameters:
activityType- The type of this activity task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInput
public void setInput(String input)
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
- Parameters:
input- The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
-
getInput
public String getInput()
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
- Returns:
- The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
-
withInput
public ActivityTask withInput(String input)
The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.
- Parameters:
input- The inputs provided when the activity task was scheduled. The form of the input is user defined and should be meaningful to the activity implementation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ActivityTask clone()
-
-