ATG Commerce Programming Guide

Replacing the Way the Qualifier Determines the Result Set

You can replace the way that a helper method determines its result set by extending the Qualifier to override any of the existing findQualifyingXXX methods.

For example, you might not want to use a PMDL rule to determine the objects to discount. You could use a repository query to select the items that a given promotion should discount. The list of items to discount could be stored in the promotion itself. The findQualifyingItems method could access the promotion, read the items to discount, and return them.