Add a Switch action to a task
This action specifies the path a flow takes depending on what, if any, pre-defined constraints the call meets. This action is similar to a Decision action, and is easy to set up if you have a situation that requires an evaluation of more than one condition. This action is only available in tasks.
Note: Before creating a Switch action in a task, review Switch action behavior in Architect.
- From the Architect home page, click or hover over the Flows menu and select the desired flow type.
- Create a new flow or select an existing one. The flow’s configuration page opens.
- Select the task and click Click to open. The task editor opens.
- From the task editor Toolbox, expand the Logical category and drag a Switch action to the appropriate location in the call flow menu.
- In the Switch action design area, in the Name field type a meaningful name for the switch action. This name becomes the name of the Switch action in the task editor.
- In the Evaluation area, do one of the following:
- Select Take path of first case that returns True to direct Architect to follow the path the first time that a condition returns a value of True and then continue through the flow.
- Select Take path of first case that matches the below expression to direct Architect to follow the path the first time that a condition equals a specified expression and then terminate the switch action.
- If you chose to take the path of the first case that matches a predefined expression, in the Expression box enter the desired expression.
- To add additional cases beyond the default and three displayed cases, click Add Case button.
- For each case, do the following :
- Switch to expression mode.
- Enter the expression that will evaluate to True or False.
- Open the large expression editor to enter more detailed expressions.
- In the task editor, complete the Switch action by adding the appropriate action based on each case result.
- (Optional) Use the up and down arrows to arrange the order of each case.
- To delete a case, click x.
- Continue building the task per your call flow design.
[NEXT] Was this article helpful?
Get user feedback about articles.