Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.simpleworkflow.model
Class WorkflowExecutionConfiguration

java.lang.Object
  extended by com.amazonaws.services.simpleworkflow.model.WorkflowExecutionConfiguration
All Implemented Interfaces:
Serializable

public class WorkflowExecutionConfiguration
extends Object
implements Serializable

The configuration settings for a workflow execution including timeout values, tasklist etc. These configuration settings are determined from the defaults specified when registering the workflow type and those specified when starting the workflow execution.

See Also:
Serialized Form

Constructor Summary
WorkflowExecutionConfiguration()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getChildPolicy()
          The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
 String getExecutionStartToCloseTimeout()
          The total duration for this workflow execution.
 TaskList getTaskList()
          The task list used for the decision tasks generated for this workflow execution.
 String getTaskStartToCloseTimeout()
          The maximum duration allowed for decision tasks for this workflow execution.
 int hashCode()
           
 void setChildPolicy(ChildPolicy childPolicy)
          The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
 void setChildPolicy(String childPolicy)
          The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
 void setExecutionStartToCloseTimeout(String executionStartToCloseTimeout)
          The total duration for this workflow execution.
 void setTaskList(TaskList taskList)
          The task list used for the decision tasks generated for this workflow execution.
 void setTaskStartToCloseTimeout(String taskStartToCloseTimeout)
          The maximum duration allowed for decision tasks for this workflow execution.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 WorkflowExecutionConfiguration withChildPolicy(ChildPolicy childPolicy)
          The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
 WorkflowExecutionConfiguration withChildPolicy(String childPolicy)
          The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout.
 WorkflowExecutionConfiguration withExecutionStartToCloseTimeout(String executionStartToCloseTimeout)
          The total duration for this workflow execution.
 WorkflowExecutionConfiguration withTaskList(TaskList taskList)
          The task list used for the decision tasks generated for this workflow execution.
 WorkflowExecutionConfiguration withTaskStartToCloseTimeout(String taskStartToCloseTimeout)
          The maximum duration allowed for decision tasks for this workflow execution.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkflowExecutionConfiguration

public WorkflowExecutionConfiguration()
Method Detail

getTaskStartToCloseTimeout

public String getTaskStartToCloseTimeout()
The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Constraints:
Length: 1 - 8

Returns:
The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.


setTaskStartToCloseTimeout

public void setTaskStartToCloseTimeout(String taskStartToCloseTimeout)
The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Constraints:
Length: 1 - 8

Parameters:
taskStartToCloseTimeout - The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.


withTaskStartToCloseTimeout

public WorkflowExecutionConfiguration withTaskStartToCloseTimeout(String taskStartToCloseTimeout)
The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

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

Constraints:
Length: 1 - 8

Parameters:
taskStartToCloseTimeout - The maximum duration allowed for decision tasks for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Returns:
A reference to this updated object so that method calls can be chained together.

getExecutionStartToCloseTimeout

public String getExecutionStartToCloseTimeout()
The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Constraints:
Length: 1 - 8

Returns:
The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.


setExecutionStartToCloseTimeout

public void setExecutionStartToCloseTimeout(String executionStartToCloseTimeout)
The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Constraints:
Length: 1 - 8

Parameters:
executionStartToCloseTimeout - The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.


withExecutionStartToCloseTimeout

public WorkflowExecutionConfiguration withExecutionStartToCloseTimeout(String executionStartToCloseTimeout)
The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

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

Constraints:
Length: 1 - 8

Parameters:
executionStartToCloseTimeout - The total duration for this workflow execution.

The valid values are integers greater than or equal to 0. An integer value can be used to specify the duration in seconds while NONE can be used to specify unlimited duration.

Returns:
A reference to this updated object so that method calls can be chained together.

getTaskList

public TaskList getTaskList()
The task list used for the decision tasks generated for this workflow execution.

Returns:
The task list used for the decision tasks generated for this workflow execution.

setTaskList

public void setTaskList(TaskList taskList)
The task list used for the decision tasks generated for this workflow execution.

Parameters:
taskList - The task list used for the decision tasks generated for this workflow execution.

withTaskList

public WorkflowExecutionConfiguration withTaskList(TaskList taskList)
The task list used for the decision tasks generated for this workflow execution.

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

Parameters:
taskList - The task list used for the decision tasks generated for this workflow execution.
Returns:
A reference to this updated object so that method calls can be chained together.

getChildPolicy

public String getChildPolicy()
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Returns:
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:
  • TERMINATE: the child executions will be terminated.
  • REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
  • ABANDON: no action will be taken. The child executions will continue to run.
See Also:
ChildPolicy

setChildPolicy

public void setChildPolicy(String childPolicy)
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
childPolicy - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:
  • TERMINATE: the child executions will be terminated.
  • REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
  • ABANDON: no action will be taken. The child executions will continue to run.
See Also:
ChildPolicy

withChildPolicy

public WorkflowExecutionConfiguration withChildPolicy(String childPolicy)
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:

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

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
childPolicy - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:
  • TERMINATE: the child executions will be terminated.
  • REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
  • ABANDON: no action will be taken. The child executions will continue to run.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ChildPolicy

setChildPolicy

public void setChildPolicy(ChildPolicy childPolicy)
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
childPolicy - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:
  • TERMINATE: the child executions will be terminated.
  • REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
  • ABANDON: no action will be taken. The child executions will continue to run.
See Also:
ChildPolicy

withChildPolicy

public WorkflowExecutionConfiguration withChildPolicy(ChildPolicy childPolicy)
The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:

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

Constraints:
Allowed Values: TERMINATE, REQUEST_CANCEL, ABANDON

Parameters:
childPolicy - The policy to use for the child workflow executions if this workflow execution is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. The supported child policies are:
  • TERMINATE: the child executions will be terminated.
  • REQUEST_CANCEL: a request to cancel will be attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.
  • ABANDON: no action will be taken. The child executions will continue to run.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ChildPolicy

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.