Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Data Mapping Using Scripts > EAI Value Maps >
CSSEAIValueMap Translate Method
The CSSEAIValueMap object has one method: Translate. The Translate method takes one argument, as follows:
The Translate method looks up the key value in the EAI Value Map and returns the translated value. The EAIGetValueMap call establishes the set of mappings for the translation using the type and direction arguments. The call looks for the key in either the Siebel Value column or in the External System Value column, depending on the value of the type argument.
- If the type is Siebel Outbound, the method returns the key found in the Siebel Value column. The translated value is in the External System Value column.
- If the type is Siebel Inbound, the method returns the key found in the External System Value column. The translated value is in the Siebel Value column.
- If key is null then the return value is null.
- If key is an empty string, the lookup is performed.
If there is no mapping, an empty string is returned.
If a nonempty string does not have a mapping, the unmappedKeyHandler value specified in the call to the EAIGetValueMap function is used to determine the translation.