Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Add a place to put record validation in SObjectTriggerHandler #79

Open
jongpie opened this issue Aug 30, 2017 · 0 comments
Open

Add a place to put record validation in SObjectTriggerHandler #79

jongpie opened this issue Aug 30, 2017 · 0 comments

Comments

@jongpie
Copy link
Owner

jongpie commented Aug 30, 2017

A constant problem with Salesforce is determining where to put Apex validation checks for a record during a trigger/save. Nebula should have a place to put these types of validation - best practice says it should be executed in an after trigger, so that seems like a good place to start.

My initial thought is to create an interface like the one below, then make a spot for it in SObjectTriggerHandler so that the validator can be called during trigger execution.

public interface ISObjectValidator {
    void validate();
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant