Coding-With-The-Force/Salesforce-Separation-Of-Concerns-And-The-Apex-Common-Library

Abstract domain classes

reignman5 opened this issue · 0 comments

How do we handle for example record-type specific logic in the domain layer?
Imagine I have an object that calculates a currency field oninsert, but this logic differs for the record-type.

Would I make the domain class virtual? Or would I put the record-type specific logic into the service class for that object?