Create variables
You can create variables and add them to your application.
You cannot create two variables with the same name even if the variable type is different. You can add as many variables as needed and modify them. When you publish the application, the process variables are created for the workflow with those set as initialization variables.
-
On the
Workflow Details tab, click
New adjacent to
Data.
The New dialog box is displayed.
-
Enter a
Name and
Unique identifier for the variable
You cannot create two variables with the same name even if the variable type is different.
-
On the
Type list, select the variable type.
Quick Workflow
supports
Bool,
Date,
Decimal,
Folder,
Numeric and
String variable types.
For more information on "Variable types", refer to the TotalAgility Designer Help.
For more information on supporting Folder variable in Quick Workflow, see Quick Workflow: Folder variable support.
- Depending on the selected variable type, specify a Value for the variable.
- To set the variable as initialization variable, select Initialization.
-
You can configure the display properties for a Date, Decimal, Numeric and String type variables. The following table
describes the display properties available for these variables.
Type Display properties Date
-
Min date and Max date: Set the minimum and maximum date values either by selecting the required date and time using the Calender picker or by clicking fx and using the @Today macro to get the current date or past/future date. For example, to set the date as 5 days from the current date, set the value as @Today+5.
Decimal
-
Min value and Max value: Enter the acceptable range of values for minimum and maximum values. (Default Minimum value: -900719925474); (Default Maximum value: 900719925474).
-
Decimal precision: Enter a value for decimal precision. (Default:2)
Numeric
-
Min value and Max value: Enter the acceptable range of values for minimum and maximum values. (Default minimum: -2147483648); (Default maximum: 2147483647) .
String
-
Input type: Select one of the following controls as needed:
Single line
If selected, adds a text box for the single line fields, such as name.
Multi line
If selected, adds a text box that may go beyond one line, such as customer address.
Drop down If selected, adds a drop-down list based on the selected Data source. Available data source options are:
Lookup Select an existing lookup.
Custom To enter custom data, do the following:
-
Click .
-
Add a Name.
-
Click Add and close.
To quickly add as many values as needed without navigating away, click Add another.
-
To make it a default value, select Default.
Add more items as needed.
Email If selected, adds a text box to an Email field type.
-
-
Max length: Provide the maximum number of characters allowed to enter in the input type selected above. (Default: 10,000)
-
Mandatory: Select this option to make the input type mandatory.
-
-
Click
Add another to add as many variables as needed without navigating away from
the dialog box, or click
Add and close to close the dialog box.
The variables are added and listed in the Data section. When you publish the application, the process variables are created for the workflow with those set as initialization variables.
-
To set the display order of the data required to submit a new workflow request, click
Set display order.
The Display order dialog box is displayed.
-
Click
to reorder the initialization variables.
The initialization order takes effect only after the first time you publish the application.
Quick Workflow: Folder variable support
You can add documents within a Quick Workflow by adding data of type Folder; this is treated as a default folder type.
In Quick Workflow, folder variables are unavailable for use as key data or within a condition node. Folder system properties are also not available for use.
When you build a Create new job or Activity forms using the process that has the folder variable, the File upload control is added to the form. This file upload control allows you to upload documents to the repository without having to edit the form design.