public class ActivityTask extends Object implements Serializable
Unit of work sent to an activity worker.
Constructor and Description |
---|
ActivityTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getActivityId()
The unique ID of the task.
|
ActivityType |
getActivityType()
The type of this activity task.
|
String |
getInput()
The inputs provided when the activity task was scheduled.
|
Long |
getStartedEventId()
The id of the
ActivityTaskStarted event recorded in the
history. |
String |
getTaskToken()
The opaque string used as a handle on the task.
|
WorkflowExecution |
getWorkflowExecution()
The workflow execution that started this activity task.
|
int |
hashCode() |
void |
setActivityId(String activityId)
The unique ID of the task.
|
void |
setActivityType(ActivityType activityType)
The type of this activity task.
|
void |
setInput(String input)
The inputs provided when the activity task was scheduled.
|
void |
setStartedEventId(Long startedEventId)
The id of the
ActivityTaskStarted event recorded in the
history. |
void |
setTaskToken(String taskToken)
The opaque string used as a handle on the task.
|
void |
setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ActivityTask |
withActivityId(String activityId)
The unique ID of the task.
|
ActivityTask |
withActivityType(ActivityType activityType)
The type of this activity task.
|
ActivityTask |
withInput(String input)
The inputs provided when the activity task was scheduled.
|
ActivityTask |
withStartedEventId(Long startedEventId)
The id of the
ActivityTaskStarted event recorded in the
history. |
ActivityTask |
withTaskToken(String taskToken)
The opaque string used as a handle on the task.
|
ActivityTask |
withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.
|
public String getTaskToken()
Constraints:
Length: 1 - 1024
public void setTaskToken(String taskToken)
Constraints:
Length: 1 - 1024
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.public ActivityTask withTaskToken(String taskToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
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.public String getActivityId()
Constraints:
Length: 1 - 256
public void setActivityId(String activityId)
Constraints:
Length: 1 - 256
activityId
- The unique ID of the task.public ActivityTask withActivityId(String activityId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
activityId
- The unique ID of the task.public Long getStartedEventId()
ActivityTaskStarted
event recorded in the
history.ActivityTaskStarted
event recorded in the
history.public void setStartedEventId(Long startedEventId)
ActivityTaskStarted
event recorded in the
history.startedEventId
- The id of the ActivityTaskStarted
event recorded in the
history.public ActivityTask withStartedEventId(Long startedEventId)
ActivityTaskStarted
event recorded in the
history.
Returns a reference to this object so that method calls can be chained together.
startedEventId
- The id of the ActivityTaskStarted
event recorded in the
history.public WorkflowExecution getWorkflowExecution()
public void setWorkflowExecution(WorkflowExecution workflowExecution)
workflowExecution
- The workflow execution that started this activity task.public ActivityTask withWorkflowExecution(WorkflowExecution workflowExecution)
Returns a reference to this object so that method calls can be chained together.
workflowExecution
- The workflow execution that started this activity task.public ActivityType getActivityType()
public void setActivityType(ActivityType activityType)
activityType
- The type of this activity task.public ActivityTask withActivityType(ActivityType activityType)
Returns a reference to this object so that method calls can be chained together.
activityType
- The type of this activity task.public String getInput()
Constraints:
Length: 0 - 32768
public void setInput(String input)
Constraints:
Length: 0 - 32768
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.public ActivityTask withInput(String input)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32768
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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.