public class Workflow extends NextGenInstanceResource<TwilioTaskRouterClient>
| Constructor and Description |
|---|
Workflow(TwilioTaskRouterClient client)
Instantiates a workflow.
|
Workflow(TwilioTaskRouterClient client,
Map<String,Object> properties)
Instantiates a workflow.
|
Workflow(TwilioTaskRouterClient client,
String workspaceSid,
String workflowSid)
Instantiates a workflow.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAssignmentCallbackUrl()
The URL that will be called whenever a task managed by this Workflow is assigned to a Worker.
|
String |
getConfiguration()
JSON document configuring the rules for this Workflow.
|
Date |
getDateCreated()
The date and time this Workflow was created.
|
Date |
getDateUpdated()
The date and time this Workflow was last updated.
|
String |
getFallbackAssignmentCallbackUrl()
If the request to the AssignmentCallbackUrl fails, the assignment callback will be made to this URL.
|
String |
getFriendlyName()
A human-readable description of this Workflow.
|
String |
getSid()
This Workflow's unique ID.
|
WorkflowStatistics |
getStatistics()
Get workflow statistics.
|
WorkflowStatistics |
getStatistics(Map<String,String> filters)
Get workflow statistics.
|
WorkflowStatistics |
getStatistics(StatisticsQueryBuilder queryBuilder)
Get workflow statistics.
|
Integer |
getTaskReservationTimeout()
Determines how long TaskRouter will wait for a confirmation response from your application after assigning a Task
to a worker.
|
String |
getWorkspaceSid()
The unique ID of the
Workspace containing this Workflow. |
WorkflowConfiguration |
parseConfiguration()
WorkflowConfiguration object representing this Workflow
|
getCastedObject, getObject, getProperty, toJSON, update, updatesetRequestAccountSidpublic Workflow(TwilioTaskRouterClient client)
client - the clientpublic Workflow(TwilioTaskRouterClient client, Map<String,Object> properties)
client - the clientproperties - the propertiespublic Workflow(TwilioTaskRouterClient client, String workspaceSid, String workflowSid)
client - the clientworkspaceSid - the workspace sidworkflowSid - the workflow sidpublic String getAssignmentCallbackUrl()
public String getConfiguration()
public WorkflowConfiguration parseConfiguration() throws IOException
IOExceptionpublic Date getDateCreated()
public Date getDateUpdated()
public String getFallbackAssignmentCallbackUrl()
public String getFriendlyName()
public String getSid()
public Integer getTaskReservationTimeout()
public String getWorkspaceSid()
Workspace containing this Workflow.public WorkflowStatistics getStatistics()
public WorkflowStatistics getStatistics(StatisticsQueryBuilder queryBuilder)
queryBuilder - query builder which contains all parameters for the stats query requestpublic WorkflowStatistics getStatistics(Map<String,String> filters)
filters - the filtersCopyright © 2011 Twilio, Inc. All Rights Reserved.