< Previous

Adding a relationship transform to the business object maps

Adding the relationship to previously built business object maps means the maps can now resolve how data is represented between the source and target business objects specified by the business object maps.

Business object maps are a way of relating business objects. One business object becomes the source and another becomes the target. The business object map maps the source and target, in our case through a relationship transform. Business object maps support 1-to-n, many-to-1 and many-to-n mappings among business objects.

To add a relationship transform to the GenericCustomerToSpecificCustomer business object map:

  1. In the navigation tree of the Business Integration view, expand BankModule > Mapping > Data Maps. Right-click GenericCustomerToSpecificCustomer.
  2. From the pop-up menu, select Open. The business object map opens in the editor view.
    Screen capture showing the GenericCustomerToSpecificCustomer map
  3. In the editor for GenericCustomerToSpecificCustomer, select theCustomerBO label on the left (the source). An orange handle appears at the right of the label.
  4. Click the handle. Drag the cursor to the business object CustomerBO on the right side of the editor and click there. A connection is created between the two objects with a submap between them.
  5. Right-click the submap.
  6. From the pop-up menu, select Change Transform Type > Relationship. Screen capture of a part of the map, showing the relationship
  7. Switch to the Properties view.
  8. Click the Description tab on the left.
  9. In the Execution order list, select1.
  10. Click the Details tab.
  11. From the Relationship definition list, click CustomerRelationship.
  12. From the Role name list, click BankCustomer.
  13. From the menu, select File > Save (or press Ctrl+S).
  14. From the menu, select File > Close (or press Ctrl+F4). The editor closes for GenericCustomerToSpecificCustomer.

Adding the relationship transform to the SpecificCustomerToGenericCustomer business object map

The business object map adds the relationship transformation between a specific customer to a generic customer.

  1. Switch to the Business Integration view.
  2. In the navigation tree, expand BankModule > Mapping > Data Maps. Double-click SpecificCustomerToGenericCustomer The editor opens.
  3. In the editor for SpecificCustomerToGenericCustomer, select theCustomerBO label on the left, click the handle, and drag the cursor to the business object CustomerBO on the right side of the editor. A connection is created between the two objects with a submap between them.
  4. From the pop-up menu on the submap, select Change Transform Type > Relationship.
  5. Switch to the Properties view.
  6. Click the Description tab on the left and change the execution order to 1.
  7. Click the Details tab.
  8. From the Relationship definition list, click CustomerRelationship.
  9. From the Role name list, click BankCustomer.
  10. From the menu, select File > Save (or press Ctrl+S).
    Screen capture showing completed map
  11. Wait for the workspace to rebuild. Then, from the menu, select File > Close (or press Ctrl+F4). The editor closes for SpecificCustomerToGenericCustomer.

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