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.
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.
public boolean checkRequiredAttribute(BusObj busObj, Vector attrs, Vector err) \ throws ExceptionThis method, checkRequiredAttribute, takes as input the Retail_Item business object and two Vectors. The first Vector contains the list of fully qualified attribute names to be checked for NULL or BLANK values. On return, the second Vector contains the list of missing attributes (those containing NULL or BLANK values). The method returns true if no attribute data is missing; it returns false if any required attribute data is missing.
public boolean checkRequiredAttribute(BusObj busObj, String attr, Vector err) \ throws ExceptionThis method, also named checkRequiredAttribute, operates the same as the first, except it takes as input a single fully qualified attribute name.
public boolean checkComplexFilter(BusObj busObj, HashMap complexFilter) \ throws ExceptionThis method, checkComplexFilter, operates the same as the third, except that it takes as input a HashMap of a single complex filter.
public boolean checkComplexFilters(BusObj busObj, Vector complexFilters) \ throws ExceptionThis method, checkComplexFilters, takes as input the Retail_Item business object and one Vector. The Vector contains HashMaps of complexFilters to be checked. If any of the complex filters evaluate to true, then true is returned. If none of them evaluate to true, then false is returned.