Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"orgName": "kpoorman company",
"edition": "Developer",
"features": ["TransactionFinalizers"]
"edition": "Developer"
}
4 changes: 2 additions & 2 deletions force-app/main/default/classes/Chain.cls
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Chain implements Finalizer {

public void execute(FinalizerContext context){
Id parentQueueableJobId = context.getAsyncApexJobId();
switch on context.getAsyncApexJobResult() {
switch on context.getResult() {
when SUCCESS {
if(this.promises.size() > 0){
Promise next = this.promises.remove(0);
Expand All @@ -20,7 +20,7 @@ public class Chain implements Finalizer {
}
when UNHANDLED_EXCEPTION {
System.Debug('Parent Queueable (Job ID: ' + parentQueueableJobId + '): FAILED!');
System.Debug('Parent Queueable Exception: ' + context.getAsyncApexJobException().getMessage());
System.Debug('Parent Queueable Exception: ' + context.getException().getMessage());
}
}
}
Expand Down