Create process variables

  1. Open the process map in which to create a process variable.
  2. On the Modeling bar, click Variables.
  3. Click New.

    The New variable dialog box is displayed.

  4. Enter a unique Name for the variable, such as CustomerName.
    By default, the name of the variable becomes the ID of the variable; however, you can change the ID if needed.
  5. Enter a unique ID for the variable, such as CUSTID.
    For naming convention of name and ID, see Name conventions.
  6. On the Type list, select the data type for the variable, such as Byte. (Default: String)

    See Variable types for supported data types.

  7. Optional. To use the variable for process initialization, select Initialization.
    Note This option is not available for a business rule and complex variable.
  8. Select, enter or configure a Value for the variable.
    • To provide a dynamic value, at runtime, leave the Value empty.

    • In some nodes such as Email, C#, VBNET, and Decision, plain text is being replaced by variable with the same name. For example, if you have a variable called ID and if you type the text VOID, the plain text will be replaced by VO[ID]. This only happens at design time; at runtime the values validate and appear correctly.

  9. Click Add.

    The Variables page appears.

  10. To change the initialization order for process initialization variables, perform the following steps:
    1. Click Initialization order.

      The Initialization variables dialog box is displayed.

    2. Select the variable and click or to change the order.
    3. Click OK to return to the Variables page.
  11. Click Save.

Create a process variable while configuring activities

You can create a new variable directly from the configuration window such as when configuring activities such as .Net, Web service and Data access node, and when configuring the metadata for nodes such as SharePoint add item.

For example, to create a new variable for .Net activity, do the following:

  1. On the Configuration tab of the .Net activity, click Configure for parameters.
  2. Click the down arrow for Value.
  3. Click
    The New variable dialog box is displayed.
  4. Configure the variable as needed.
  5. Click OK.