Constructor and Description |
---|
WorkflowCreator(String pathWorkspaceSid,
String friendlyName,
String configuration)
Construct a new WorkflowCreator.
|
Modifier and Type | Method and Description |
---|---|
Workflow |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
WorkflowCreator |
setAssignmentCallbackUrl(String assignmentCallbackUrl)
The URL from your application that will process task assignment events.
|
WorkflowCreator |
setAssignmentCallbackUrl(URI assignmentCallbackUrl)
The URL from your application that will process task assignment events.
|
WorkflowCreator |
setFallbackAssignmentCallbackUrl(String fallbackAssignmentCallbackUrl)
The URL that we should call when a call to the `assignment_callback_url`
fails..
|
WorkflowCreator |
setFallbackAssignmentCallbackUrl(URI fallbackAssignmentCallbackUrl)
The URL that we should call when a call to the `assignment_callback_url`
fails..
|
WorkflowCreator |
setTaskReservationTimeout(Integer taskReservationTimeout)
How long TaskRouter will wait for a confirmation response from your
application after it assigns a Task to a Worker.
|
create, createAsync, createAsync
public WorkflowCreator(String pathWorkspaceSid, String friendlyName, String configuration)
pathWorkspaceSid
- The SID of the Workspace that the new Workflow to
create belongs tofriendlyName
- descriptive string that you create to describe the
Workflow resourceconfiguration
- A JSON string that contains the rules to apply to the
Workflowpublic WorkflowCreator setAssignmentCallbackUrl(URI assignmentCallbackUrl)
assignmentCallbackUrl
- The URL from your application that will process
task assignment eventspublic WorkflowCreator setAssignmentCallbackUrl(String assignmentCallbackUrl)
assignmentCallbackUrl
- The URL from your application that will process
task assignment eventspublic WorkflowCreator setFallbackAssignmentCallbackUrl(URI fallbackAssignmentCallbackUrl)
fallbackAssignmentCallbackUrl
- The URL that we should call when a call
to the `assignment_callback_url` failspublic WorkflowCreator setFallbackAssignmentCallbackUrl(String fallbackAssignmentCallbackUrl)
fallbackAssignmentCallbackUrl
- The URL that we should call when a call
to the `assignment_callback_url` failspublic WorkflowCreator setTaskReservationTimeout(Integer taskReservationTimeout)
taskReservationTimeout
- How long TaskRouter will wait for a
confirmation response from your application
after it assigns a Task to a Workerpublic Workflow create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.