Class WorkflowExecutionCancelRequestedEventAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
Provides details of the WorkflowExecutionCancelRequested
event.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCause()
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution.The external workflow execution for which the cancellation was requested.int
hashCode()
void
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.void
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.void
setExternalInitiatedEventId
(Long externalInitiatedEventId) The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution.void
setExternalWorkflowExecution
(WorkflowExecution externalWorkflowExecution) The external workflow execution for which the cancellation was requested.toString()
Returns a string representation of this object; useful for testing and debugging.If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause.withExternalInitiatedEventId
(Long externalInitiatedEventId) The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution.withExternalWorkflowExecution
(WorkflowExecution externalWorkflowExecution) The external workflow execution for which the cancellation was requested.
-
Constructor Details
-
WorkflowExecutionCancelRequestedEventAttributes
public WorkflowExecutionCancelRequestedEventAttributes()
-
-
Method Details
-
setExternalWorkflowExecution
The external workflow execution for which the cancellation was requested.
- Parameters:
externalWorkflowExecution
- The external workflow execution for which the cancellation was requested.
-
getExternalWorkflowExecution
The external workflow execution for which the cancellation was requested.
- Returns:
- The external workflow execution for which the cancellation was requested.
-
withExternalWorkflowExecution
public WorkflowExecutionCancelRequestedEventAttributes withExternalWorkflowExecution(WorkflowExecution externalWorkflowExecution) The external workflow execution for which the cancellation was requested.
- Parameters:
externalWorkflowExecution
- The external workflow execution for which the cancellation was requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExternalInitiatedEventId
The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
externalInitiatedEventId
- The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
getExternalInitiatedEventId
The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
-
withExternalInitiatedEventId
public WorkflowExecutionCancelRequestedEventAttributes withExternalInitiatedEventId(Long externalInitiatedEventId) The ID of the
RequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Parameters:
externalInitiatedEventId
- The ID of theRequestCancelExternalWorkflowExecutionInitiated
event corresponding to theRequestCancelExternalWorkflowExecution
decision to cancel this workflow execution.The source event with this ID can be found in the history of the source workflow execution. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCause
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- Parameters:
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.- See Also:
-
getCause
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- Returns:
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- See Also:
-
withCause
If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- Parameters:
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel 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 request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- Parameters:
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.- See Also:
-
withCause
public WorkflowExecutionCancelRequestedEventAttributes withCause(WorkflowExecutionCancelRequestedCause cause) If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.
- Parameters:
cause
- If set, indicates that the request to cancel the workflow execution was automatically generated, and specifies the cause. This happens if the parent workflow execution times out or is terminated, and the child policy is set to cancel child executions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-