9. static design
c
droplet
l
promotion tools
i
data store
promotion repository
e
action
n
t
pipeline
servlet
s
10. static design
a b c
profile PromotionStatus promotion
user
a == user has an active profile
b == profile has an attribute called activePromotions.
activePromotion:RepositoryItem
c == a reference to the underlying promotion
PromotionStatus also hold number of times that a customer can use the promotion.
11. pmdl
promotion is described in ATG using pricing model description language
qualifier
discount
rule
target
qualifier == when a promotion may apply
target == what may be discounted
p r i c i n g m o d e l d e s c r i p t i o n l a n g u a g e