Identifying customizations on Management Center Version 6 Feature Pack x

Installing WebSphere Commerce Version 7, provides a new Management Center version, which is enabled by default. If you have previously installed and enabled the Management Center feature provided in Version 6 (Feature Pack 3.0.1 or later), review this information. Customizations that you made to the Management Center in your Version 6 installation can be identified after you install WebSphere Commerce Version 7. Reviewing the customizations gives you an idea on how much time and effort is required to migrate your Management Center customizations.

Before you begin

The Eclipse compare editor does not display line numbers by default. The lines numbers assist you in determining what location within the file, has changed. To ensure that line numbers are shown in the compare editor view, complete the following steps:
  1. Start WebSphere Commerce Developer.
  2. Click Window > Preferences.
  3. Expand Workbench and select General > Compare/Patch.
  4. Select Show additional compare information in the status line.
  5. Expand Workbench and select General > Editors > Text Editors.
  6. Select Show line numbers.
Notes:
  1. In WebSphere Commerce Version 6 (Feature Pack 3.0.1 or later) the OpenLaszlo files are contained in both restricted and non-restricted directories. Files in restricted directories are considered IBM assets and files in non-restricted directories are custom assets. When enabling the Version 7 Management Center feature, the files in the restricted directories are deleted from your workspace and files in the non-restricted directories are kept.
  2. Between Version 6 (Feature Pack 3.0.1 or later) and Version 7, some elements have been moved to a different parent or a different file. For each moved element the comparison tool reports two entries; add element and delete element. The add element is the new location of the element and the delete element is the original location of the element.

About this task

Installing WebSphere Commerce Developer Version 7 provides a new version of Management Center which includes a compare editor. You can use the compare editor in these situations:
  • After installing the Websphere Commerce Version 7 toolkit, you can compare:
    • Management Center changes between Version 6 Feature Pack x base with any customizations you made in Version 6 Feature Pack x base, where Feature Pack x is Feature Pack Version 3.0.1 or later.
  • After Migrating Management Center customizations, you can compare:
    • Management Center changes between Version 6 Feature Pack x base with any customizations you made in Version 6 Feature Pack x base, where Feature Pack x is Feature Pack Version 3.0.1 or later.
    • Management Center changes between Version 7 base with any customizations you made in Version 7 base.
The compare editor generates a report to assist you with migrating OpenLaszlo files to WebSphere Commerce Version 7 level.

Procedure

  1. Start WebSphere Commerce Developer Version 6.
  2. Start the compare editor by completing these steps:
    1. Open the Enterprise Explorer view.
    2. Right click LOBTools and select OpenLaszlo Migration > Compare Customizations.
    The compare editor runs. Click the OpenLaszlo Migration Results tab.
    OpenLaszlo Migration Results
  3. The comparison report shows the following columns:
    Filename
    The name of the file you customized in Version 6 (Feature Pack version). Listed below the filename is one or more lines items represented in this format:
    Line #nn:version
    Where:
    • nn is the line number which contains a change
    • version is the feature pack version of the changed file
    Status
    A status of New is displayed in this column.
    Change type
    The type of change or customization on the base Version 6 (Feature Pack version) file. Examples of change types are:
    • Add, Modify, or Remove attribute
    • Add file
    • Reorder element
    • Add or Delete element
      Notes:
      1. Between Version 6 (Feature Pack version) and Version 7, some elements have been moved to a different parent or a different file. The comparison tool reports two entries; add element and delete element. The add element is the new location of the element and the delete element is the original location of the element. The delta details of the delete element shows the new location of the file and parent.
      2. If you modified the unique identifier (ID) of an element, two entries are displayed; add element and delete element. The add element is the modified element and the delete element is the original feature pack file.
  4. Analyze the comparison report to ensure that changes identified correspond to changes made by your development team, on the base Version 6 files. Consider the following situation when reviewing the report:
    • Consider the quantity of changes listed. Use the quantity to gauge the time and effort required to migrate to WebSphere Commerce Version 7 level.
    • If you modified the unique identifier (ID) of an element, two entries are displayed; add element and delete element.

      The unique identifier provides a marker to identify corresponding elements from version to another. Corresponding elements describes an element that exists in two or more feature packs.

      A unique ID is used to uniquely identify an element under its parent. The values or the combinations of values must be unique under its parent instance. A null value or missing value is allowed. Unique identifiers are defined in the following ways:
      1. The instance name itself is a unique identifier. For example mktExperimentValidator is a unique identifer.
      2. The instance name and the value of an attribute form the unique identifier. For example <mktExperimentValidator validatorId='xyz'.../>.
      3. The instance name and the combinations of values of attributes form the unique identifier.
      You are not required to use unique identifiers unless you copy a ready to use class for your own purposes. Refer to OpenLaszlo API documentation for the predefined unique identifiers.
  5. Edit any custom wc-component.xml files you have created as part of your customizations. Remove the queryTemplateCacheEnabled="false" from the <_config:dataservice> element. For example, the following XML sample has the element which must be removed:
    <_config:dataservice dataMediatorType="JDBC"
     metadataClass="$java_package_name$.facade.server.metadata.$class_prefix$MetaData"
     queryTemplateCacheEnabled="false"/>
  6. Install WebSphere Commerce Developer Version 7 on your WebSphere Commerce Developer workstation.
  7. Prepare to migrate Management Center customizations from Version 6 FEPx to Version 7
    The LOBTools project is backed up during the installation of Version 7. The backup is located in directory:
    • WCDE_installdir\components\management-center\backup
  8. Start and run the compare editor by completing step 2.
  9. Click Delta between Version 7 base and Version 7 current. This comparison view displays the following columns:
    Filename
    The name of the file altered by the WebSphere Commerce version 7 installation. Listed below the filename is one or more lines items represented in this format:
    Line #nn:version
    Where:
    • nn is the line number which contains a change
    • version is the feature pack version of the changed file
    Status
    A status of the file.
    Status filter Version 7 results
    All Displays all customizations related to the Management Center enablement.
    Migrated Displays customizations that have been migrated to the Version 7 level.
    Not Migrated Displays customizations that have not been migrated to the Version 7 level.
    New Displays new customizations made to the Version 7 level.
    Change type
    The type of change or customization on the base Version 7 file. Examples of change types are:
    • Add, Modify, or Remove attribute
    • Add file. This change type indicates a new file you have created in the Version 6 (Feature Pack version) environment. There is no further action required on any Add file entry. If you delete any of these files from the workspace and run the comparison report again, the deleted file is removed from both the Version 7 and Feature Pack version reports.
    • Add or Delete element
    • Reorder element
    Note: A right click on a file, except a file with a change type of Add file, shows the following option:
    • Compare changes between Version 6 and Version 7 releases
    If you make additional changes to your Version 7 files, the compare editor can be run again by referring to step 2