Skip to main content
About the Resource Center

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.
  1. From the Architect home page, click or hover over the Flows menu and select the desired flow type.
  2. Create a new flow or select an existing one. The flow’s configuration page opens.
  3. Select the task and click Click to open. The task editor opens.
  4. From the task editor Toolbox, expand the Logical category and drag a Switch action to the appropriate location in the call flow menu.
  5. 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.
  6. 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.
  7. If you chose to take the path of the first case that matches a predefined expression, in the Expression box enter the desired expression.
  8. To add additional cases beyond the default and three displayed cases, click Add Case button.
  9. For each case, do the following :
  10. In the task editor, complete the Switch action by adding the appropriate action based on each case result.
  11. (Optional) Use the up and down arrows to arrange the order of each case.
  12. To delete a case, click x.
  13. Continue building the task per your call flow design.