Switch on Text

This activity lets you navigate to a different activity based on the value of the expression that can be defined in the Properties grid.

Other activities that needs be executed, as per the specified expression, must be connected with the Case branch of Switch on Text activity. The first Case branch is defined with Default display name. You can change the name and define the Case branch logic of all the branches in the Properties grid.

Using Switch on Text Activity

1.    In the Canvas Tools pane, click Flow Controls to expand the tool and view the associated activities.

2.    Drag the Switch on Text activity around other activity that you want to connect with.

 


3.    Branch out and connect the Switch on Text activity with the activity you want to execute.

4.    In the Properties pane of the Switch on Text activity, enter a value in the Expression field based on the which the relevant Case branch is chosen.

5.    In the Properties pane of the Case branch, enter a logic for potential execution path to compare with the Switch on Text Expression and execute the required activity.

The Switch on Text activity with a default display name is created. The warning sign disappears once you provide the required inputs.

Switch on Text Properties

The properties of a Switch on Text and Case branch activity are listed in the following table and can be edited in their respective Properties grid on the right pane.


Property Name

Usage

Switch on Text

DisplayName

The name of the activity that is displayed in the flowchart. By default, the value is set as Switch. You can edit this value as per your need.

Expression

The value based on which the relevant Case branch is compared.

Case

DefaultCaseDisplayName

The name of the default Case branch that is executed if no logic is entered in the Case to match with the value of Switch on Text expression. By default, the value is set as Default. You can edit this value as per your requirement.

Case

Appears for the Case branch other than the Default branch. Signifies the potential execution path based on the logic that is executed based on the value Switch on Text expression.

IsDefaultCase

Signifies if the branch is the default branch.

On This Page Hide

   

   Related Topics

Step-by-Step Guide to Use Guided Scripting to Automate a Loan Promotion Process