Class WorkflowExecutionTerminatedEventAttributes
- All Implemented Interfaces:
Serializable, Cloneable
Provides details of the WorkflowExecutionTerminated event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetCause()If set, indicates that the workflow execution was automatically terminated, and specifies the cause.The policy used for the child workflow executions of this workflow execution.The details provided for the termination (if any).The reason provided for the termination (if any).inthashCode()voidIf set, indicates that the workflow execution was automatically terminated, and specifies the cause.voidIf set, indicates that the workflow execution was automatically terminated, and specifies the cause.voidsetChildPolicy(ChildPolicy childPolicy) The policy used for the child workflow executions of this workflow execution.voidsetChildPolicy(String childPolicy) The policy used for the child workflow executions of this workflow execution.voidsetDetails(String details) The details provided for the termination (if any).voidThe reason provided for the termination (if any).toString()Returns a string representation of this object; useful for testing and debugging.If set, indicates that the workflow execution was automatically terminated, and specifies the cause.If set, indicates that the workflow execution was automatically terminated, and specifies the cause.withChildPolicy(ChildPolicy childPolicy) The policy used for the child workflow executions of this workflow execution.withChildPolicy(String childPolicy) The policy used for the child workflow executions of this workflow execution.withDetails(String details) The details provided for the termination (if any).withReason(String reason) The reason provided for the termination (if any).
-
Constructor Details
-
WorkflowExecutionTerminatedEventAttributes
public WorkflowExecutionTerminatedEventAttributes()
-
-
Method Details
-
setReason
The reason provided for the termination (if any).
- Parameters:
reason- The reason provided for the termination (if any).
-
getReason
The reason provided for the termination (if any).
- Returns:
- The reason provided for the termination (if any).
-
withReason
The reason provided for the termination (if any).
- Parameters:
reason- The reason provided for the termination (if any).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDetails
The details provided for the termination (if any).
- Parameters:
details- The details provided for the termination (if any).
-
getDetails
The details provided for the termination (if any).
- Returns:
- The details provided for the termination (if any).
-
withDetails
The details provided for the termination (if any).
- Parameters:
details- The details provided for the termination (if any).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setChildPolicy
The policy used for the child workflow executions of this workflow execution.
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
WorkflowExecutionCancelRequestedevent 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.
- Parameters:
childPolicy- The policy used for the child workflow executions of this workflow execution.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
WorkflowExecutionCancelRequestedevent 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:
-
getChildPolicy
The policy used for the child workflow executions of this workflow execution.
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
WorkflowExecutionCancelRequestedevent 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:
- The policy used for the child workflow executions of this
workflow execution.
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
WorkflowExecutionCancelRequestedevent 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:
-
withChildPolicy
The policy used for the child workflow executions of this workflow execution.
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
WorkflowExecutionCancelRequestedevent 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.
- Parameters:
childPolicy- The policy used for the child workflow executions of this workflow execution.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
WorkflowExecutionCancelRequestedevent 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setChildPolicy
The policy used for the child workflow executions of this workflow execution.
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
WorkflowExecutionCancelRequestedevent 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.
- Parameters:
childPolicy- The policy used for the child workflow executions of this workflow execution.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
WorkflowExecutionCancelRequestedevent 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:
-
withChildPolicy
The policy used for the child workflow executions of this workflow execution.
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
WorkflowExecutionCancelRequestedevent 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.
- Parameters:
childPolicy- The policy used for the child workflow executions of this workflow execution.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
WorkflowExecutionCancelRequestedevent 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCause
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- Parameters:
cause- If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.- See Also:
-
getCause
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- Returns:
- If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- See Also:
-
withCause
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- Parameters:
cause- If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCause
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- Parameters:
cause- If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.- See Also:
-
withCause
If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.
- Parameters:
cause- If set, indicates that the workflow execution was automatically terminated, and specifies the cause. This happens if the parent workflow execution times out or is terminated and the child policy is set to terminate child executions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
-
equals
-
hashCode
-
clone
-