Developer best practices in Pega
Cards 4 out of 11
Create Extension Points
If the same record applies to two classes, with tiny differences, move the shared logic to a record in a shared parent and add py extension points. Overwrite the extension points as needed in the subclass and include the subtle differences there. See Pega-DataModel-DataSources.pxGenerateRules for an example. It uses pyCreateGenerationRequest as an extension point in its subclasses.