Dynamic selection using aliases > Lookup alias > Lookup alias example

Lookup alias example
In this example, a lookup alias is used to select the appropriate output connector:
spoolSWE – output connector used for invoices with country code SWE. This is also the default connector alternative.
spoolFIN – output connector used for invoices with country code FIN.
Key
The country code is used to determine which connector to select. In this example, the variable $countryCode is used as key. This is a variable created for the Event field countryCode.
Lookup table
The lookup table is called connectors.tbl. It contains two rows, where each row consists of a key value (the value of $countryCode) and an alternative associated with the key value:
SWE    spoolSWE
FIN    spoolFIN
Setting the alias
The alias is set in the Connector Selection Method dialog box.Click to enlarge
How it works
1
2
The field variable $countryCode in the current invoice equals SWE.
3
The StreamServer application finds the key value SWE and the corresponding connector alternative spoolSWE in the lookup table.
4
The connector selection alias is set to spoolSWE, and the invoice is sent to the connector spoolSWE.
 
OpenText StreamServe 5.6 Updated: 2013-03-01