Create an XML expression variable

  1. In the New variable dialog box, 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.
  2. On the Type list, select XML expression. (Default: String)
  3. Optional. To use the variable for process initialization, select Initialization.
  4. In the XPath expression text field, enter the XML string, such as //Customer, or the path to an XML document, such as \\<machinename>\HardDiskC\Program Files\TotalAgility\AWAudit.txt.
  5. To specify the source to use in the XML document variable, select the Source XML.
    • For a synchronous process map with an XML expression variable whose source is mapped with a server variable, at runtime, updating the XML expression variable does not update the server source variable.

    • When editing server XML expression variables, the process and case variables are not visible on the Variables list.

  6. On the Return data type list, select the return type of the XML expression which can use any of the following formats: Bool (default), Byte, Currency, Date, Decimal, Double, Float, Long, Short, String, Text or XML.
  7. To specify the XML document schema location, select one of the following options:
    • None (default): Does not use an XML schema.

    • Location variable: Select a process or server variable in the Location variable field.

    • Location: Enter a static value for the XML schema location in the Location field, such as, c:\xml node\schemas.

  8. Enter the Namespace bindings, such as xmlns:a=
    Note The namespace binding is used to avoid element name conflicts.
  9. Click OK.

    Note the following:

    • If an input parameter returns an XML variable, the contents of the variable are returned as follows:

      • If the variable stores a path, the content of the XML document appears.

      • If the variable stores an XML String, the actual XML value appears.

    • If an input parameter returns an XML expression, the expression is evaluated and the actual value appears.

    • If an output or initialization parameter is an XML variable or expression, the actual XML appears. If the user updates the value of the parameter the XML document is updated.

    • Variable value validation of XML expressions is completed the same way as that of a simple process variable of the same type. For example, XML expressions of return type Short can be used in process maps as if they were simple short variables.

  10. Click Save.