public class WorkflowRule extends Object
Constructor and Description |
---|
WorkflowRule(String expression,
List<WorkflowRuleTarget> targets)
Define a workflow rule.
|
WorkflowRule(String expression,
List<WorkflowRuleTarget> targets,
String friendlyName)
Define a workflow rule with an optional label.
|
Modifier and Type | Method and Description |
---|---|
void |
addWorkflowRuleTarget(WorkflowRuleTarget target)
Adds the workflow rule targets.
|
String |
getExpression()
Get the expression for the workflow rule.
|
String |
getFilterFriendlyName()
Get the filter friendly name / label for the workflow rule.
|
String |
getFriendlyName()
Get the friendly name / label for the workflow rule.
|
List<WorkflowRuleTarget> |
getWorkflowRuleTargets()
Get the list of workflow rule targets for this workflow rule.
|
void |
setExpression(String expression)
Set the expression for the workflow rule.
|
void |
setFilterFriendlyName(String filterFriendlyName)
Set the filter friendly name for the workflow rule.
|
void |
setFriendlyName(String friendlyName)
Set the friendly name for the workflow rule.
|
void |
setWorkflowRuleTargets(List<WorkflowRuleTarget> targets)
Sets the workflow rule targets.
|
String |
toString()
Return a string representation of this workflow rule target.
|
public WorkflowRule(String expression, List<WorkflowRuleTarget> targets) throws IllegalArgumentException
expression
- expression to match a task to this ruletargets
- list of workflow rule targets (list should be provided in order they will be executed)IllegalArgumentException
- if expression or targets is emptypublic WorkflowRule(String expression, List<WorkflowRuleTarget> targets, String friendlyName) throws IllegalArgumentException
expression
- expresison to match a task to this ruletargets
- list of workflow rule targets (list should be provided in order they will be executed)friendlyName
- the label for this workflow ruleIllegalArgumentException
- if expression or targets is emptypublic String getExpression()
public void setExpression(String expression)
expression
- expression for the workflow rulepublic String getFriendlyName()
public void setFriendlyName(String friendlyName)
friendlyName
- friendly name for the workflow rulepublic String getFilterFriendlyName()
public void setFilterFriendlyName(String filterFriendlyName)
filterFriendlyName
- filter friendly name for the workflow rule.public List<WorkflowRuleTarget> getWorkflowRuleTargets()
public void setWorkflowRuleTargets(List<WorkflowRuleTarget> targets)
targets
- targets of the workflow rulepublic void addWorkflowRuleTarget(WorkflowRuleTarget target)
target
- target of workflow ruleCopyright © 2011 Twilio, Inc. All Rights Reserved.