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.

You cannot create a data model within Quick RPA.

  1. On the Workflow Details tab, click New adjacent to Data.

    The New dialog box is displayed.

  2. Enter a Name for the variable. such as Customer Name.

    By default, the variable name is displayed for the unique identifier also. You can change the unique identifier if needed.

    You cannot create two variables with the same name even if the variable type is different.

  3. On the Type list, select the variable type. The workflow supports Bool, Date, Decimal, Folder, Numeric, and String variable types.

    For more information on "Variable types", refer to the Kofax TotalAgility Designer Help.

    For more information on supporting Folder variable in a workflow, see Workflow: Folder variable support.

  4. Depending on the selected variable type, specify a Value for the variable.
  5. To set the variable as an initialization variable, select Initialization.
  6. You can configure the display properties for a Bool, Data object, Date, Decimal, Numeric, and String type variables.
    1. Label text: By default, the variable name is displayed as the label text. You can change the label text if you wish to display a longer piece of text than the variable name.
    2. The following table describes the additional display properties as applicable.

    Type Display properties

    Data object

    Value: Set the values either by selecting the required server data model or local data model.

    The Label text option is not available for the Data object.

    Date

    • Show time: If selected, displays the time element at runtime.

    • Min date and Max date: Set the minimum and maximum date values either by selecting the required date and time using the Calendar 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:

      1. Click .

      2. Add a Name.

      3. Click Add and close.

        To quickly add as many values as needed without navigating away, click Add another.

      4. 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.

  7. 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.

  8. 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.

  9. Click  to reorder the initialization variables.

    The initialization order takes effect only after the first time you publish the application.

Workflow: Folder variable support

You can add documents within the Quick RPA by adding data of type Folder; this is treated as a default folder type.

In a workflow, the 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 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.