Introduced in Feature Pack 2

Customizing the Business Object Mediator to include custom data

Introduced in Feature Pack 2 In this lesson, the Business Object Mediator is modified to map the new columns to the user data field of the CatalogEntryView noun. As a result, the search results in the Madisons starter store include the newly added external ratings data.

About this task


  1. Navigate to the directory. You must create this directory if it does not already exist.
    • WC/xml/config/
  2. Open the wc-business-object-mediator.xml file. You must create this file if it does not already exist.

    For an example of BOM configuration changes, see the tutorial: Adding new properties to a WebSphere Commerce service using the data service layer.

  3. Add the following mapping in bold:
    <_config:object logicalType=""
    <_config:mediator interfaceName=""
    <_config:mediator-property name="CatalogEntryView/UserData[(Name='Rating')]" value="customerRanking_display" />
    Note: The property value is configured to be customerRanking_display as a tfloat for computation purposes.
  4. Save your changes and close the file.