Dynamic Services consists of two components that enable the catalog properties to be dynamically updated as the catalog structure is modified by an ACC user or a program using the Repository API.

CatalogChangesListener

Component: /atg/commerce/catalog/custom/CatalogChangesListener

This component registers itself at deployment as a property changed listener for the product catalog. It is notified for each repository change made to a category or catalog item in the product catalog. As each change is made, it calls the CatalogCompletionService to make dynamic updates to the appropriate catalog item property values.

CatalogCompletionService

Component: /atg/commerce/catalog/custom/CatalogCompletionService

This component updates catalog item property values in real time based on changes made to the product catalog repository. It is called by the CatalogChangesListener when changes are made to the product catalog repository.

Refer to the CatalogUpdateService for a list of properties that are maintained by this service.

Additional property information:

Property

Description

computeSubCatalogs

If true, the catalog item’s subCatalogs property will be updated. The subCatalogs property is no longer used by custom catalogs, but remains available for backward compatibility.

The CatalogUpdateService also refers to this property to control updating of the subCatalogs property in real time.

Enabled

True/False

Running the Dynamic Services

The dynamic service components are started automatically when Dynamo is running with the DCS.CustomCatalogs module. You can disable the CatalogCompletionService by setting the service’s enabled property to false. If you set the enabled property to false, the components still starts up with ATG Commerce, they just don’t do anything when they’re called.

 
loading table of contents...