public class WorkflowRuleTarget extends Object
| Constructor and Description |
|---|
WorkflowRuleTarget(String queue)
Create a workflow rule target with just a task queue sid.
|
WorkflowRuleTarget(String queue,
String expression,
Integer priority,
Integer timeout)
Create a workflow rule target with a task queue and other optional fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExpression()
Get the expression for the workflow rule target to limit the workers selected.
|
Integer |
getPriority()
Get the priority for the workflow rule target.
|
String |
getQueue()
Get the queue for the workflow rule target.
|
Integer |
getTimeout()
Get the timeout for the workflow rule target.
|
void |
setExpression(String expression)
Set the expression for the workflow rule target.
|
void |
setPriority(Integer priority)
Set the priority for the workflow rule target.
|
void |
setQueue(String queue)
Set the queue for the workflow rule target.
|
void |
setTimeout(Integer timeout)
Set the timeout for the workflow rule target.
|
String |
toString()
Return a string representation of this workflow rule target.
|
public WorkflowRuleTarget(String queue) throws IllegalArgumentException
queue - sid of the queueIllegalArgumentException - if queue sid is emptypublic WorkflowRuleTarget(String queue, String expression, Integer priority, Integer timeout) throws IllegalArgumentException
queue - sid of the queueexpression - expression to limit the workers that can look at a given taskpriority - priority to assign the tasktimeout - timeout before moving on to the next workflow rule targetIllegalArgumentException - if queue sid is emptypublic String getQueue()
public void setQueue(String queue)
queue - queue namepublic String getExpression()
public void setExpression(String expression)
expression - rule expressionpublic Integer getPriority()
public void setPriority(Integer priority)
priority - rule prioritypublic Integer getTimeout()
public void setTimeout(Integer timeout)
timeout - timeoutCopyright © 2011 Twilio, Inc. All Rights Reserved.