Skip to content

Custom Settings to Disable Triggers (via hier custom settings) #36

@bjanderson70

Description

@bjanderson70

Need the ability to disable triggers via Hier. Custom Setting. I am planning on creating a sub-dir framework-application-configuration to contain IApplicationConfiguration that allows one to get the IDomainConfiguration, ISelectorConfiguraiton and IServiceConfiguration. Why 3? Interface Segregation. Will start w/ IDomainConfiguration would initially define the following:

 // is the sobject triggers enabled (i.e. 'Account', 'Contact', or 'All' ...) [_default impl, returns true_]
 boolean isTriggerEnabled(string sobjectName);
 // trace/debug information wanted ... instead of 'system.debug'; use a configuration to turn on/off
 // this cross-cuts other configurations but here for completeness [_default impl returns false_]
 boolean isTracing();

So why this way instead of active/de-active in the CMT ? Bec/ different users/profiles will have different needs. For example, a system integrator performing bulk loads may run under a profile that wants triggers disabled. For others, the triggers are enabled.

If you have any comments/issues please let me know ... WIP.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions