Pattern Variables Usage

Once a target interface is marked as dynamic, the application name and service name must be supplied in the mediation flow. You can optionally specify pattern variables to aid in the mapping of data in the mediation exchange to create the appropriate application name and service name.

For example, you can have six operations in your dynamic target interface. All service providers that are referenced use the same application name, and service name follows the pattern service data, where data is a variable portion of the service name. The value of data is supplied in an incoming message.

Instead of providing a mapping for each of the six operations, you can specify one pattern variable to represent the variable portion of the service name, and then create one mapping for all operations on the Pattern Map tab of the Properties view of the target interface. The figure below shows the Pattern Map tab of this example.

An example of pattern variables


To supply the value of the pattern variable, you can perform one simple mapping in a Set Dynamic Reference task on the path for each mediation operation.

See Dynamic Reference Task Setting.