< Previous

Mapping parameters for the GenericToSpecific interface map

Provide a short description for this tutorial lesson.

Mapping parameters of the createCustomer operations

Follow these steps to create the parameter maps.
  1. In the interface mapping editor, click the connection between the createCustomer operations and expand the editor's window to view the parameter mappings.
  2. Click on the source inputCustpmer parameter on the left, grab the wire handle and connect it to the target's inputCustomer parameter. A parameter mapping with a default type of move is created and must be changed to map..
  3. Switch to the Properties view's description page. In the parameter type list, click map. Notice that the parameter mapping view reflects the change to the parameter type.
  4. Select the business object map to use in the parameter mapping. Click the details tab, and select GenericCustomerToSpecifcCustomer from the business object map list. Click the Map output list to select CustomerBO_1.
  5. Follow the same procedure to create a map with the specific outputCustomer parameter on the right as source and the generic outputCustomer parameter on the left as target. Use the SpecificCustomerToGenericCustomer business object map.

The following table shows the details of the parameter maps for the createCustomer operations.

Table 1. Parameter maps for the createCustomer operation
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, operation createCustomer   specifc BankInterface, operation createCustomer      
inputCustomer CustomerBO inputCustomer CustomerBO map GenericCustomerToSpecificCustomer
specific BankInterface, operation createCustomer   generic BankInterface, operation createCustomer      
outputCustomer CustomerBO outputCustomer CustomerBO map SpecificCustomerToGenericCustomer

Mapping parameters of the retrieveCustomer operations

Follow the steps described previously to create parameter maps for the retrieveCustomer to retrieveCustomer operations, using the details specified in the following table.
Table 2. Parameter map for retrieveCustomer to retrieveCustomer
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, operation retrieveCustomer   specific BankInterface, operation retrieveCustomer      
inputCustomer CustomerBO inputCustomer CustomerBO map GenericCustomerToSpecificCustomer
specific BankInterface, operation retrieveCustomer   generic BankInterface, operation retrieveCustomer      
outputCustomer CustomerBO outputCustomer CustomerBO map SpecificCustomerToGenericCustomer

Mapping parameter of the updateCustomer operations

Follow the steps described previously to create parameter maps for the updateCustomer to updateCustomer operations, using the details specified in the following table.
Table 3. Parameter map for updateCustomer to updateCustomer
Source name Source type Target name Target type Parameter map type Business object type
generic BankInterface, operation updateCustomer   specific BankInterface, operation updateCustomer      
inputCustomer CustomerBO inputCustomer CustomerBO map GenericCustomerToSpecificCustomer
specific BankInterface, operation updateCustomer   generic BankInterface, operation updateCustomer      
outputCustomer CustomerBO outputCustomer CustomerBO map SpecificCustomerToGenericCustomer

Mapping parameters of the updateContactInformation and updateContactInfo operations

Follow the steps described previously to create parameter maps for the updateContactInformation and updateContactInfo operations, using the details specified in the following table.
Table 4. Parameter map for updateContactInformation and updateContactInfo
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, updateContactInformation   specific BankInterface, updateContactInfo      
customer CustomerBO inputContactInfo ContactInfoBO map GenericCustomerToSpecificContactInfo
specific BankInterface, updateContacInfo   generic BankInterface, updateContactInformation      
outputContactInfo ContactInfoBO result TrueOrFalseBO map SpecificContactInfoToGenericTrueOrFalse

Mapping parameters ofr the createAccount operations

Follow the steps described previously to create parameter maps for the generic createAccount to createAccount operation map, using the details specified in the following table.
Table 5. Parameter map for the createAccount operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, createAccount   specific BankInterface, createAccount      
inputCustomer CustomerBO inputCustomer CustomerBO map GenericCustomerToSpecificCustomer
inputAccount BankAccountBO inputAccount AccountBO map GenericBankAccountToSpecificAccount
specific BankInterface, operation createAccount   generic BankInterface, operation createAccount      
outputAccount AccountBO outputAccount BankAccountBO map SpecificAccountToGenericBankAccount

Mapping parameters of the getAccounts operations

Follow the steps described previously to create parameter maps for the generic getAccounts to getAccounts operation map, using the details specified in the following table.
Table 6. Parameter map for the getAccounts operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, getAccounts   specific BankInterface, getAccounts      
customer CustomerBO customer CustomerBO map GenericCustomerToSpecificCustomer
specific BankInterface, getAccounts   generic BankInterface, getAccounts      
accounts BankAccountListBO accounts AccountListBO map SpecificAccountListToGenericBankAccountList

Mapping parameters of the deleteAccount operations

Follow the steps described previously to create parameter maps for the generic deleteAccount to deleteAccount operation map, using the details specified in the following table.
Table 7. Parameter map for the deleteAccount operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, deleteAccount   specific BankInterface, deleteAccount      
inputCustomer CustomerBO inputCustomer CustomerBO map GenericCustomerToSpecificCustomer
inputAccount BankAccountBO inputAccount AccountBO map GenericBankAccountToSpecificAccount
specific BankInterface, deleteAccount   generic BankInterface, deleteAccount      
outputAccount AccountBO result TrueOrFalseBO map SpecificAccountToGenericTrueOrFalse

Mapping parameters of the withdraw operations

Follow the steps described previously to create parameter maps for the generic withdraw to specific withdraw operation map, using the details specified in the following table.
Table 8. Parameter map for the withdraw operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, withdraw   specific BankInterface, withdraw      
amount double inputAmount double move  
account BankAccountBO inputAccount AccountBO map GenericBankAccountToSpecificAccount
specific BankInterface, withdraw   generic BankInterface, withdraw      
outputAccount AccountBO newBalance CashAmountBO map SpecificAccountToGenericCashAmount

Mapping parameters of the deposit operations

Follow the steps described previously to create parameter maps for the generic deposit to specific deposit operation map, using the details specified in the following table.
Table 9. Parameter maps for the deposit operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, deposit   specific BankInterface, deposit      
amount double inputAmount double move  
account BankAccountBO inputAccount AccountBO map GenericBankAccountToSpecificAccount
specific BankInterface, deposit   generic BankInterface, deposit      
outputAccount AccountBO newBalance CashAmountBO map SpecificAccountToGenericCashAmount

Mapping parameters for the transfer operations

Follow the steps described previously to create parameter maps for the generic transfer to specific transfer operation map, using the details specified in the following table.
Table 10. Parameter maps for the transfer operations
Source name Source type Target name Target type Parameter map type Business object map
generic BankInterface, transfer   specific BankInterface, transfer      
fromAccount BankAccountBO inputAccountFrom AccountBO map GenericBankAccountToSpecificAccount
toAccount BankAccountBO inputAccountTo AccountBO map GenericBankAccountToSpecificAccount
amount double inputAmount double move  
specific BankInterface, transfer   generic BankInterface, transfer      
outputAccountFrom AccountBO result TrueOrFalse map SpecificAccountToGenericTrueOrFalse

Mapping parameters for the authenticate and isWebLoginValid operations

Follow the steps described previously to create parameter maps for the generic authenticate to specific isWebLoginValid operation map, using the details specified in the following table.
Table 11. Parameter map for the authenticate and isWebLoginValid operations
Source name Source type Target name Target type Parameter map type
generic BankInterface, authenticate   specific BankInterface, isWebLoginValid    
customerName string customerName string move
password string password string move
specific BankInterface, isWebLoginValid   generic BankInterface, authenticate    
result boolean result boolean move

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous