Variables
You can create and use variables in during document processing. To use a variable, you
can create it from the GUI or CLI or within XSLT or GatewayScript files. All approaches use a set
variable type of action that creates the variable in a specific context and assigns a value. You can
use variables in most contexts, except PIPE.
You can view the variable values for a transaction with the probe. Edit the service to enable the probe. After you enable the probe and record transactions, you can view variables and their values.
DataPower® processing supports the following distinct
variable types. You can define each type in the slash
var://URL
format or dot notation format.var://local/variable- Addresses the variable local variable in the default (current) context.
var://context/context/variable- Addresses the variable context variable in the context
named context. The value for the named context must be a single-word string of alphanumeric
characters and the
-and_special characters. var://service/variable- Addresses the variable service variable that is made available to a DataPower service that is attached to a session.
var://system/context/variable- Addresses the variable system variable that is available in all contexts.
System variables, while globally accessible, must be defined within a specified context. System
variables persist beyond the scope of request-response processing. When the content of a variable
must be read or set outside the scope of request-response processing, use a system variable.CAUTION:System variables can introduce unexpected problems. Do not use system variables except under the direction of IBM Support.