Package com.twilio.taskrouter
Class Workflow
- java.lang.Object
-
- com.twilio.taskrouter.TaskRouterResource
-
- com.twilio.taskrouter.Workflow
-
public class Workflow extends TaskRouterResource
-
-
Constructor Summary
Constructors Constructor Description Workflow(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget)Define a workflow.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WorkflowfromJson(String json)Converts a JSON workflow configuration to a workflow object.WorkflowRuleTargetgetDefaultTarget()List<WorkflowRule>getWorkflowRules()-
Methods inherited from class com.twilio.taskrouter.TaskRouterResource
toJson
-
-
-
-
Constructor Detail
-
Workflow
public Workflow(List<WorkflowRule> workflowRules, WorkflowRuleTarget defaultTarget)
Define a workflow.- Parameters:
workflowRules- list of workflow rules (in order they will be processed)defaultTarget- default filter
-
-
Method Detail
-
getWorkflowRules
public List<WorkflowRule> getWorkflowRules()
-
getDefaultTarget
public WorkflowRuleTarget getDefaultTarget()
-
fromJson
public static Workflow fromJson(String json) throws IOException
Converts a JSON workflow configuration to a workflow object.- Parameters:
json- JSON for workflow- Returns:
- a workflow rule target object
- Throws:
IOException- if unable to create object
-
-