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 |
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 |
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)IllegalArgumentExceptionpublic 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 ruleIllegalArgumentExceptionpublic String getExpression()
public void setExpression(String expression)
expression - public String getFriendlyName()
public void setFriendlyName(String friendlyName)
friendlyName - public List<WorkflowRuleTarget> getWorkflowRuleTargets()
public void setWorkflowRuleTargets(List<WorkflowRuleTarget> targets)
targets - public void addWorkflowRuleTarget(WorkflowRuleTarget target)
targets - Copyright © 2011 Twilio, Inc. All Rights Reserved.