Using the Custom Missing Attribute Logic

The ItemValidation collaboration template also contains a subdiagram called Custom Missing Attribute Logic.

Description

This subdiagram holds customized code for user-defined methods for identifying the required attributes of the Retail_Item business object that are are missing data. This code can be executed instead of, or in addition to, the code in the File Missing Attribute Logic subdiagram. Before customization, the Custom Missing Attribute Logic subdiagram contains examples of the following methods to enhance the algorithm for identifying required attributes of the Retail_Item business object that are missing data.
Note: These examples do not execute while the TEST configuration property is set to false. See the TEST configuration property, TEST.
  • Add fully qualified attribute names to the Required Attribute Vector, which is processed later in the algorithm.
  • Add fully qualified attribute names to the Missing Attribute Vector, which is processed later in the algorithm.
  • Modify the name of the file that is normally set from the REQUIRED_ATTRIBUTE_FILE configuration property.
  • Create and add instances of Retail_Missing_Attributes business objects directly to the attribute named in the CUST_DATA_MISS_ATTR configuration property (by default, internals.customer_data_missing_attributes).

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