Getting Started
- ActiveSetup Apex Trigger with Atarc Instance
- ActiveCreate Atarc Process Apex Helper
- ActiveAdd Atarc Process Record to Atarc Process Setting
- ActiveUnit Test for Apex Helper
- ActiveNext Steps
Progress: 0%
Setup Apex Trigger with Atarc Instance
Last Modifed: March 21, 2020
by
anyei
This is to tell the trigger you are using ATARC. Let's take a look at how the triggers where you want to implement ATARC should look:
trigger ATARCAccountTrigger on Account (before insert, before update, before delete, after insert, after update, after delete, after undelete) {
new AsyncTriggerArc().start();
}
As you can see, we are just instantiating the apex class AsyncTriggerArc inside the apex trigger.
So on every single trigger you want to implement the ATARC engine you have to do this class instantiation. Very important: It is a must to only have one trigger per sobject.
Only one trigger is enought and highly recommended, but if you have multiple triggers as well make sure they are attached to different events to make sure you can control the order of execution.
Now that we have our ATARC instance within our trigger, let's create an Atarc Process apex class to inject into this trigger.
Next - Create Atarc Process Apex Helper