public class WorkflowConfiguration extends Object
| Constructor and Description |
|---|
WorkflowConfiguration(List<WorkflowRule> workflowRules,
WorkflowRuleTarget defaultTarget)
Define a workflow
|
WorkflowConfiguration(com.twilio.sdk.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 filterExceptionpublic WorkflowConfiguration(com.twilio.sdk.taskrouter.WorkflowConfiguration.TaskRoutingConfiguration taskRouting)
taskRoutingConfig - Exceptionpublic List<WorkflowRule> getWorkflowRules()
public WorkflowRuleTarget getDefaultTarget()
public String toJSON() throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
IOExceptionorg.codehaus.jackson.map.JsonMappingExceptionorg.codehaus.jackson.JsonGenerationExceptionpublic static WorkflowConfiguration parse(String configurationJSON) throws IOException
configurationJSON - JSON for workflow configurationIOExceptionCopyright © 2011 Twilio, Inc. All Rights Reserved.