Setting allowable ranges for Business Objects

You can configure the allowable ranges for Business Objects within each component to reduce the risk of potential system failures.

About this task

Each service module's business thresholds are contained in a component registry configuration file, called wc-admin-component.xml. In order for a service module to define its own business threshold, a component registry is introduced.

Perform the following steps to create a new wc-admin-component.xml and define the business thresholds that you want to support.

Procedure

  1. Define the component registry that defines the business thresholds that you want to support.
    1. Navigate to the following directory:
      • xml/config/component-id

      Where component-id is the ID of the component to define business thresholds within.

    2. Create a file called wc-admin-component.xml.
    3. Edit the file so that its structure resembles the following snippet:
      <_config:DeploymentConfiguration
      	xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config"
      	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      	xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-admin-component.xsd">
      	<_config:extendedconfiguration>
      		<_config:configgrouping name="grouping_name">
      			<_config:property name="property1" value="value1" />
      			<_config:property name="property2" value="value2" />
      		</_config:configgrouping>
      			</_config:extendedconfiguration>
      </_config:DeploymentConfiguration>
      Where:
      • grouping_name is the threshold name. For example, ShoppingCartThreshold.
      • property1 is the name of a property corresponding to the grouping. For example, size.
      • value1 is the value corresponding to property1. For example, 10000.
      • property2 is the name of a property corresponding to the grouping. For example, quantity.
      • value2 is the value corresponding to property2. For example, 10000.
      Note: Multiple grouping names can exist within each component configuration file, containing their own property names and values.
    4. Save the new file.
  2. Register the admin component registry in the Foundation configuration mapping registry file. Update the wc-config-mapping-registry.xml file:
    <_config:filemapping configFileName="wc-admin-component.xml"
    	implementationClassName="com.ibm.commerce.foundation.internal.common.config.DeploymentComponentConfigurationImpl" />