Within the triggering Retail_Item business object, an ItemCollector
collaboration object checks if the attribute specified in the property MISSING_DATA_CHILD_ATTRIBUTE
(by default, the internals.customer_data_missing_attributes child business
object) contains a list of missing attributes.
Description
Note: It is assumed that previous processing,
such as that performed by an ItemValidation collaboration object, previously
identified which attribute names were required and missing from the item and
that previous processing (such as a custom collaboration object) collected
the values for those missing attributes and set the values in the Retail_Missing_Attributes
child business object of the Retail_Item business object.
Each Retail_Missing_Attributes
business object contains two attributes. The first attribute contains the
name of a Retail_Item attribute that was determined during previous processing
to be required and missing its data. The second attribute contains the value
of the Retail_Item attribute that was obtained through a missing data collection
process prior to the ItemCollector collaboration object being invoked.
An
ItemCollector collaboration object needs to reference each of the two elements
of the Retail_Missing_Attributes child business object. Use the configuration
properties, MISSING_DATA_NAME_ATTRIBUTE and MISSING_DATA_VALUE_ATTRIBUTE.
- MISSING_DATA_NAME_ATTRIBUTE holds
the attribute name as defined in the Retail_Missing_Attributes child business
object. By default, this value is attribute_name. If you change this default
value, the change must be reflected in the value of the MISSING_DATA_VALUE_ATTRIBUTE
as well.
- MISSING_DATA_VALUE_ATTRIBUTE holds
the attribute value as defined in the Retail_Missing_Attributes child business
object. By default, this value is attributeValue. If you change this default
value, the change must be reflected in the value of the MISSING_DATA_NAME_ATTRIBUTE
as well.
For each Retail_Missing_Attributes instance in the missing attribute
array, the collaboration object first verifies that the attribute is a valid
Retail_Item attribute. If true, the attribute’s value is copied from the Retail_Missing_Attributes
instance to its correct position in the Retail_Item business object obtained
from the local item store. If the attribute is not valid for the Retail_Item,
the collaboration object generates an informational message in the log and
continues processing.