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

EAIGetValueMap Function


You use the following statement in your Siebel eScript code to return a value map:

EAIGetValueMap (type, direction [,unmappedKeyHandler])

This object returns a value map for translating lookup keys using the Type-Direction combination.

  • The type argument is a string found in the Type field of the EAI Value Map table.
  • The direction argument must be either Siebel Inbound or Siebel Outbound string values.

A call to this function returns a CSSEAIValueMap object.

You can use the optional unmappedKeyHandler argument to control the behavior of the Translate method when it gets keys that do not have mappings in the table. The unmappedKeyHandler argument can be either a literal value or a function. If you pass a literal value, it is used as the default value. Otherwise, if you pass a function, the method calls that function, then uses the value returned by the function.

The unmappedKeyHandler defaults to an empty string ("").

Business Processes and Rules: Siebel eBusiness Application Integration Volume IV