When I was first introduced to Salesforce our company was medium size, with many straightforward Trigger based business processes. Since then we have merged into a large company with many strategic business units (SBUs) which our current org was not intended for.
With that said, we are currently refactoring our Transaction Script-like processes that manage the trigger-centric business logic, and we are looking to build a full-scale Domain Model. As I get started I was curious if there are any resources in the community that intentionally implement Martin Fowler's Patterns of Enterprise Application Architecture (PEAA) within the context of APEX?
At the moment Andrew Fawcett's, "FinancialForce Apex Common" which has been very helpful but also very deep to dive into, hoping to find some boilerplate examples with some simpler implementations to get things started so that I can implement a refactoring process and not a complete overwrite (he's Domain Model includes trigger handling, mock data, and structure that we are not ready for).
For example what classes (or groups of classes) would make up the following layers:
- Service Layer
- Domain Model
- Unit of Work
- and Data Mapper