Adding variables to processes


While creating a process, you can add input and output variables to the process. The variables help you to define the current value of any part of a process. For example, in the Create record process, add the Assignee Name variable to show the assignee of that record.

When you add a variable, you can also define the data type for that variable. Learn more about the variable data types in Process-variables-and-data-types.

To add a process variable

  1. In the Properties section, click Add/Remove Variables.
  2. Click Add Variable.
    22_1_Add or Remove variables dialog box.png
  3. Enter the variable field details as described in the following table:

    Field Name

    Description

    Name

    Specify a suitable name for the variable.

    Variable ID

    Specify an unique ID for the variable.
    This value must be numeric.

    Variable Type

    Specify whether the variable is an input/output parameter or a local variable. For an input parameter, if you select the Variable Type as Input Required and Data Type as Text or Record, a context key is set automatically. For more information about a context key, see Input variable.
    Process input parameters and output parameters are the interfaces of a process. When starting a process, data is passed to the input parameters, and when the process is complete, data is received from the output parameters. The only exception to this process is the Record data type.

    A Local Variable facilitates process execution. It can be used to capture the result of a process activity, such as signal input of a Receive Task or a loop data item for a multi-instance loop.

    Description

    Provide a description that clearly indicates the purpose of this variable.

    Data Type

     Select the required data type for the variable. For more information, see Process-variables-and-data-types.
    Notes:

    • If you select Record as the Data Type, you must select a Record definition that you want to associate with the parameter.
    • If you select Selection as the Data Type, you must specify the options that will be displayed in the selection list.
    • (Optional) If you select Object as the Data Type, you can select the Document definition that you want to associate with the parameter.

    Default Value

    Specify a default value for the parameter.

    List

    If you want to create a list of attachments or texts, select the List toggle key 22_1_List toggle key.png.

  4. (Optional) To add more parameters, repeat step 2 through step 3.
  5. Click Save.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*