Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Data Mapping Using Scripts > EAI Value Maps >

EAIGetValueMap() Method


This method retrieves objects for the required Type-Direction mapping. Table 56 presents the parameters for this method.

Syntax

EAIGetValueMap(type, direction [, unmappedKeyHandler])

Table 56. Parameters for EAIGetValueMap() Method
Parameter
Description

type

Specifies the type of transformation map.

direction

A string specifying the direction of the message. The possible values are:

"Siebel Inbound"

"Siebel Outbound"

unmappedKeyHandler

Specifies the value to pass to the map for an unmapped key. Can be an empty string, null, a literal, or the name of a predefined function.

Returns

An object you can use to access the EAI Value Maps.

Usage

Use this method at the beginning of a script function to retrieve objects for the required Type-Direction mapping. Then call the object's Translate method to get the translation of a code from the map table as needed within the function.

NOTE:  Providing a Type-Direction pair that does not have an entry in the EAI Value Map raises an error at the first call to the Translate method.

Business Processes and Rules: Siebel eBusiness Application Integration Volume IV