原书出处
Domain-Driven Design Tackling Complexity in the Heart of Software
85 原书第11章|Example Insight into the Nightly Batch
ules explicit by introducing a new object. Figure 11.8. The class diagram of the basic posting rule
A posting rule is triggered by a new Entry in its "input" account. It then derives a new Entry (based on its own calculation Method) and inserts the new Entry into its "output" Account . In a payroll system, an Entry in a salary Account might trigger a Posting Rule that would calculate a 30 percent estimated income tax and insert it as an Entry in the tax with-holding Account.
Executing Posting Rules The Posting Rule has established the conceptual dependency between Accounts
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Domain-Driven Design Tackling Complexity in the Heart of Software/_epub-src/0321125215_ch11lev2sec2.html
EPUB SHA-256:3e81897e8809ae8135b32e0563f9858b3020c5f5128531655f6d8e3a21c679ce