Creating a content versioning configuration file

You create a content versioning configuration file in your service module directory for each custom object you want versionable. This file defines the configuration for the UI objects that are versionable and what parts of the UI objects to save when a version is created.

Before you begin


  1. Open HCL Commerce Developer and switch to the Enterprise Explorer view.
  2. In the Enterprise Explorer view, expand WC > xml > config > servicemoduleDir; where servicemoduleDir is your service module directory. For example, com.mycompany.commerce.project.
  3. In the servicemoduleDir folder, create the custom configuration file.
    1. Right-click the servicemoduleDir folder; then click New > File
    2. In the Name field, type wc-content-version.xml.
      Note: You must name your content versioning configuration file wc-content-version.xml.
  4. Add the following code snippet into the custom configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <wc:ContentVersionConfiguration xmlns:wc=""
    xsi:schemaLocation=" ../../content-version/xsd/wc-content-version.xsd">
    All configuration files start with the preceding code snippet.
  5. Build your custom configuration file. For detailed information about the content versioning configuration file, see Content Versioning configuration file (wc-content-version.xml).
  6. Add the </wc:ContentVersionConfiguration> tag to the end of your custom configuration file.
  7. Save and close the custom configuration file.