public class WorkflowConfiguration extends Object
| Constructor and Description |
|---|
WorkflowConfiguration(List<WorkflowRule> workflowRules,
WorkflowRuleTarget defaultTarget)
Define a workflow.
|
WorkflowConfiguration(com.twilio.taskrouter.WorkflowConfiguration.TaskRoutingConfiguration taskRouting)
Constructor for creating based on json.
|
| Modifier and Type | Method and Description |
|---|---|
WorkflowRuleTarget |
getDefaultTarget() |
List<WorkflowRule> |
getWorkflowRules() |
static WorkflowConfiguration |
parse(String configurationJson)
Converts a JSON workflow configuration to a workflow configuration object.
|
String |
toJSON()
Converts a workflow configuration to JSON.
|
String |
toString() |
public WorkflowConfiguration(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget) throws Exception
workflowRules - list of workflow rules (in order they will be processed)defaultTarget - default filterException - if unable to create WorkflowConfigurationpublic WorkflowConfiguration(com.twilio.taskrouter.WorkflowConfiguration.TaskRoutingConfiguration taskRouting)
taskRouting - Task Routing Configurationpublic List<WorkflowRule> getWorkflowRules()
public WorkflowRuleTarget getDefaultTarget()
public String toJSON() throws IOException
IOException - if unable to transform to JSONpublic static WorkflowConfiguration parse(String configurationJson) throws IOException
configurationJson - JSON for workflow configurationIOException - if unable to create objectCopyright © 2011 Twilio, Inc. All Rights Reserved.