Add an expression activity
Use the Expression activity to perform basic functions on data.
-
Click
below the Start node or any other node.
The Add activity dialog box is displayed.
- On the Type list, select Expression. (Default: Task)
- By default, "Expression" appears as the Title. You can change the title as needed.
- Specify a State to apply when the task becomes available or is pending.
- Click Add.
-
On the properties panel, click
for
Expressions to add an expression.
The Expression dialog box is displayed.
- On the Target variable list, select a process or server variable. If the required variable is not available, you can create a new variable. See Create variables.
- Optional. Enter a Description for the expression node.
- Right-click on the rule editor and define an Expression using the Process variables, Server variables, and/or functions (Math, Text, and Date) as needed. Add as many expressions as needed. For more information, refer to "Configure an Expression activity" in TotalAgility Designer Help.
-
To validate the expression, click
Validate.
If the expression rule is invalid, an error message appears.
-
Optional. To ensure the results and format are as expected, click
Test.
The Test expression dialog box displays the variable values.
The Test option is not available in on-premise multi-tenant and Azure environments.
-
Click
Execute test.
The expression is executed, and the test result is displayed. You can change the variable values and retest the expression if needed.
Click Cancel if you do not want to test the expression.
- Click Add.
- Save or release the process map.