Create Global Variables

You can create complex and simple type global variables that are available for usage throughout an orchestrated integration (for example, when building an expression in the Expression Builder of an assign action).

User-defined complex type variables are defined based on the WSDLs/XSDs exposed in the integration by the trigger connection and any invokes connection. These variables are then available throughout the integration for assignment and usage.

To create global variables:

  1. In the upper right corner of the integration canvas, click integration properties icon.
    If there are no global variables, the Global Variables dialog is displayed.
  2. Click Add Variable.
  3. Enter a name and select the data type from the dropdown list. The Object selection is considered a complex type.
    Description of define_global_variable.png follows
    Description of the illustration define_global_variable.png
  4. Click + to add more global variables. A maximum of 20 global variables can be added.
  5. If you add a global variable that is an Object data type, the dialog is expanded to display a source tree with all the elements from the request object.
  6. Expand the tree and click any element (root/child). This marks the current global variable type as a selected node type. The Type list selection changes from Object to the node name that you select.
    Description of global_variable_complex.png follows
    Description of the illustration global_variable_complex.png

    Note the following complex data type design rules:

    • Complex types are only based on XML root elements. If you select a nonroot element when creating a complex type global variable, a WSDL is automatically generated defining it as a root element for use throughout the integration.

    • Because complex type global variables are based on WSDLs/XSDs introduced into the integration by the trigger connection and invoke connections, there may be an impact when the trigger or an invoke is deleted, modified, or regenerated. Global variables react to these design changes, which may result in invalid usage/assignments.

  7. Click integration properties icon to save your changes and close the dialog.
    You cannot edit a variable. Instead, click delete icon to delete the variable, then recreate the variable.