Create a string and nullable string variable
A string variable is used to hold text value that is used in a process, form, and across TotalAgility.
You can also define form display properties to specify the type of control that will be used to represent the variable at runtime in a Create new job or Activity forms that are either built or generated dynamically.
- Open the process map in which to create the variable.
-
On the process modeling bar, click
Variables and click
New.
The New variable dialog box is displayed.
-
Enter a unique
Name for the variable.
By default, the name of the variable becomes the ID of the variable; however, you can change the ID if needed.
- On the Type list, select String or Nullable string. (Default: String)
- Optional. To use the variable for process initialization, select Initialization.
- You can use either a Static value or an Expression for the variable Value.
-
Configure the
Variable display properties.
Control type Select one of the control types:
-
Single line: Adds a text box for single-line fields, such as name. (Default: Single line)
-
Multi line: Adds a multiline text box, such as customer address.
-
Drop down: You can either select an existing lookup or enter static data for the Data source.
To enter static data, click , add a Name, and click Add. To make it a default value, select Default.
-
Email: Adds a text box control set to the Email field type.
Max number of characters The maximum number of characters allowed to enter in the control selected above. Mandatory Specify whether the control is mandatory. On generating a Create new job or activity forms for a process that has an initialization variable set with display properties, the configured properties are reflected in the corresponding controls added to the form.
-
This applies to capture and non-MFP forms only.
-
The Control type property does not apply to business rule or custom services as they do not have forms associated with them.
-
-
Click
Add and close.
The New variable dialog box is closed.
- Save the process.