-
Notifications
You must be signed in to change notification settings - Fork 14
TriggerContext
codefriar edited this page Oct 5, 2023
·
2 revisions
STATUS: ACTIVE
A class encapsulating the trigger context. Before/after insert/update/delete etc.
A default contstructor that sets the context to null and override to false
the TriggerOperation this context revolves arround
A boolean override for testing purposes
make sure this trigger should continue to run
| Type | Description |
|---|---|
| Boolean |
Boolean true if the trigger should continue to run |
| Exception | Description |
|---|---|
TriggerFrameworkException |
thrown when executing outside of a trigger |
TESTVISIBLE
Internal method for manually setting the trigger context
| Param | Description |
|---|---|
overriddenContext |
The current trigger Context |
overrideForTesting |
Is the trigger running in a test context? |
A method to set the trigger context during normal system execution.
A private test visible method for manually overriding the context
| Param | Description |
|---|---|
overriddenContext |
the context to forcibly set. |