Using the RetailUtility external Java class

A collaboration object based on the ItemValidation collaboration template checks that required attributes exist and contain data by using an external Java™ class called RetailUtility.

Description

A collaboration object based on the ItemValidation collaboration template checks that required attributes exist and contain data by using an external Java class called RetailUtility, located in the Java package com.ibm.wbi.retail.utils. It recursively parses each fully qualified attribute string to determine if the value of the attribute is NULL or BLANK.

Access to this external Java class via the ICS CLASSPATH or CWCLASSES path is also required in order to successfully compile the ItemValidation collaboration template.

Methods in the class

The class contains the following methods:

Runtime behavior

At runtime, if the collaboration object's missing attribute data check logic is enabled (the value of the Retail_Item business object's attribute named in the configuration property ITEM_COMMAND_ATTRIBUTE exists in the REQUIRED_ATTRIBUTE_CMDS property), and the required attribute Vector contains elements, this class must be added to a directory or to a jar file contained in one of the following:
  • On Windows® 2000 systems, the ICS CLASSPATH, which is set up during the start_server.bat file prior to starting the ICS.
  • On AIX® and Solaris systems, the CWCLASSES path, which is set up during the CWSharedEnv.sh file prior to starting the ICS.

Parent topic: Validating an object by requiring data for specific attributes