Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class ActivityTask

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.model.ActivityTask

public class ActivityTask
extends Object

Unit of work sent to an activity worker.


Constructor Summary
ActivityTask()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivityTask

public ActivityTask()
Method Detail

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.

Constraints:
Length: 1 - 1024

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.

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.

Constraints:
Length: 1 - 1024

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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1024

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:
A reference to this updated object so that method calls can be chained together.

getActivityId

public String getActivityId()
The unique ID of the task.

Constraints:
Length: 1 - 256

Returns:
The unique ID of the task.

setActivityId

public void setActivityId(String activityId)
The unique ID of the task.

Constraints:
Length: 1 - 256

Parameters:
activityId - The unique ID of the task.

withActivityId

public ActivityTask withActivityId(String activityId)
The unique ID of the task.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 256

Parameters:
activityId - The unique ID of the task.
Returns:
A reference to this updated object so that method calls can be chained together.

getStartedEventId

public Long getStartedEventId()
The id of the ActivityTaskStarted event recorded in the history.

Returns:
The id of the ActivityTaskStarted event recorded in the history.

setStartedEventId

public void setStartedEventId(Long startedEventId)
The id of the ActivityTaskStarted event recorded in the history.

Parameters:
startedEventId - The id of the ActivityTaskStarted event recorded in the history.

withStartedEventId

public ActivityTask withStartedEventId(Long startedEventId)
The id of the ActivityTaskStarted event recorded in the history.

Returns a reference to this object so that method calls can be chained together.

Parameters:
startedEventId - The id of the ActivityTaskStarted event recorded in the history.
Returns:
A reference to this updated object so that method calls can be chained together.

getWorkflowExecution

public WorkflowExecution getWorkflowExecution()
The workflow execution that started this activity task.

Returns:
The workflow execution that started this activity task.

setWorkflowExecution

public void setWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.

Parameters:
workflowExecution - The workflow execution that started this activity task.

withWorkflowExecution

public ActivityTask withWorkflowExecution(WorkflowExecution workflowExecution)
The workflow execution that started this activity task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
workflowExecution - The workflow execution that started this activity task.
Returns:
A reference to this updated object so that method calls can be chained together.

getActivityType

public ActivityType getActivityType()
The type of this activity task.

Returns:
The type of this activity task.

setActivityType

public void setActivityType(ActivityType activityType)
The type of this activity task.

Parameters:
activityType - The type of this activity task.

withActivityType

public ActivityTask withActivityType(ActivityType activityType)
The type of this activity task.

Returns a reference to this object so that method calls can be chained together.

Parameters:
activityType - The type of this activity task.
Returns:
A reference to this updated object so that method calls can be chained together.

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.

Constraints:
Length: 0 - 32768

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.

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.

Constraints:
Length: 0 - 32768

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.

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 32768

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:
A reference to this updated 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:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.