public class SignalWorkflowExecutionRequest extends AmazonWebServiceRequest implements Serializable
SignalWorkflowExecution operation
.
Records a WorkflowExecutionSignaled
event in the
workflow execution history and creates a decision task for the
workflow execution identified by the given domain, workflowId and
runId. The event is recorded with the specified user defined
signalName and input (if provided).
NOTE: If a runId is not specified, then the WorkflowExecutionSignaled event is recorded in the history of the current open workflow with the matching workflowId in the domain.
NOTE: If the specified workflow execution is not open, this method fails with UnknownResource.
Access Control
You can use IAM policies to control this action's access to Amazon SWF resources as follows:
Resource
element with the domain name to limit
the action to only specified domains.Action
element to allow or deny permission to
call this action.
If the caller does not have sufficient permissions to invoke the
action, or the parameter values fall outside the specified
constraints, the action fails by throwing
OperationNotPermitted
. For details and example IAM
policies, see
Using IAM to Manage Access to Amazon SWF Workflows
.
Constructor and Description |
---|
SignalWorkflowExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDomain()
The name of the domain containing the workflow execution to signal.
|
String |
getInput()
Data to attach to the
WorkflowExecutionSignaled event in
the target workflow execution's history. |
String |
getRunId()
The runId of the workflow execution to signal.
|
String |
getSignalName()
The name of the signal.
|
String |
getWorkflowId()
The workflowId of the workflow execution to signal.
|
int |
hashCode() |
void |
setDomain(String domain)
The name of the domain containing the workflow execution to signal.
|
void |
setInput(String input)
Data to attach to the
WorkflowExecutionSignaled event in
the target workflow execution's history. |
void |
setRunId(String runId)
The runId of the workflow execution to signal.
|
void |
setSignalName(String signalName)
The name of the signal.
|
void |
setWorkflowId(String workflowId)
The workflowId of the workflow execution to signal.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SignalWorkflowExecutionRequest |
withDomain(String domain)
The name of the domain containing the workflow execution to signal.
|
SignalWorkflowExecutionRequest |
withInput(String input)
Data to attach to the
WorkflowExecutionSignaled event in
the target workflow execution's history. |
SignalWorkflowExecutionRequest |
withRunId(String runId)
The runId of the workflow execution to signal.
|
SignalWorkflowExecutionRequest |
withSignalName(String signalName)
The name of the signal.
|
SignalWorkflowExecutionRequest |
withWorkflowId(String workflowId)
The workflowId of the workflow execution to signal.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getDomain()
Constraints:
Length: 1 - 256
public void setDomain(String domain)
Constraints:
Length: 1 - 256
domain
- The name of the domain containing the workflow execution to signal.public SignalWorkflowExecutionRequest withDomain(String domain)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
domain
- The name of the domain containing the workflow execution to signal.public String getWorkflowId()
Constraints:
Length: 1 - 256
public void setWorkflowId(String workflowId)
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to signal.public SignalWorkflowExecutionRequest withWorkflowId(String workflowId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
workflowId
- The workflowId of the workflow execution to signal.public String getRunId()
Constraints:
Length: 0 - 64
public void setRunId(String runId)
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to signal.public SignalWorkflowExecutionRequest withRunId(String runId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 64
runId
- The runId of the workflow execution to signal.public String getSignalName()
Constraints:
Length: 1 - 256
public void setSignalName(String signalName)
Constraints:
Length: 1 - 256
signalName
- The name of the signal. This name must be meaningful to the target
workflow.public SignalWorkflowExecutionRequest withSignalName(String signalName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
signalName
- The name of the signal. This name must be meaningful to the target
workflow.public String getInput()
WorkflowExecutionSignaled
event in
the target workflow execution's history.
Constraints:
Length: 0 - 32768
WorkflowExecutionSignaled
event in
the target workflow execution's history.public void setInput(String input)
WorkflowExecutionSignaled
event in
the target workflow execution's history.
Constraints:
Length: 0 - 32768
input
- Data to attach to the WorkflowExecutionSignaled
event in
the target workflow execution's history.public SignalWorkflowExecutionRequest withInput(String input)
WorkflowExecutionSignaled
event in
the target workflow execution's history.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32768
input
- Data to attach to the WorkflowExecutionSignaled
event in
the target workflow execution's history.public String toString()
toString
in class Object
Object.toString()
Copyright © 2016. All rights reserved.