For each SKU in the ATG Store catalog, there is a corresponding inventory item in the inventory repository that tracks inventory data for the SKU. ATG Commerce includes a mechanism for tracking the current availability of a SKU using the inventory item’s availabilityStatus property. This property can be set to integers that represent IN_STOCK (1000), OUT_OF_STOCK (1001), PREORDERABLE (1002), BACKORDERABLE (1003), and DISCONTINUED (1005).

In the ATG Store inventory repository, every inventory item’s availabilityStatus property is set to 1004 (DERIVED). This means that rather than having an explicit value, the status is derived at runtime based on the values of three other inventory item properties: stockLevel, backorderLevel, and preorderLevel. The logic for deriving the status value is:

 
loading table of contents...