class is constructed with a list of QueueableProcess Objects, and any passthrough data. The first promise in the list is executed. The QueueableProcess class automatically attaches this finalizer to it's execution.
Implements
System.Finalizer
TESTVISIBLE
a DataProvider instance. This is used to allow for dependency injection in unit tests.
private dataProviderA list of QueueableProcess Objects. The first step in the list is executed.
private final processStepsList<QueueableProcess>
This field allows you to pass information into your initial QueueableProcessStep. This is also the field that is passed to the next QueueableProcessStep in the list.
private final dataPassthroughObject
private final queueableContextHistoryList<QueueableContext>
private finalizerContextHistoryList<FinalizerContext>
EnqueueNextQueueableProcessStep(processSteps, dataPassthrough, queueableContextHistory, finalizerContextHistory)
SUPPRESSWARNINGS
Constructor for the EnqueueNextQueueableProcessStep class.
public EnqueueNextQueueableProcessStep(List<QueueableProcess> processSteps, Object dataPassthrough, List<QueueableContext> queueableContextHistory, List<FinalizerContext> finalizerContextHistory)| Name | Type | Description |
|---|---|---|
| processSteps | List<QueueableProcess> | List<QueueableProcess> A list of QueueableProcess Objects. The first step in the list is,[object Object],,[object Object],executed. |
| dataPassthrough | Object | Object this is either the initial data passed into the first QueueableProcessStep, or the,[object Object],data passed from the previous QueueableProcessStep. |
| queueableContextHistory | List<QueueableContext> | List<QueueableContext> A list of QueueableContext Objects. |
| finalizerContextHistory | List<FinalizerContext> | List<FinalizerContext> A list of FinalizerContext Objects. |
This method is required by the Apex Transaction Finalizer interface. It's used to enqueue the next QueueableProcessStep in the list, if one exists.
public void execute(FinalizerContext context)| Name | Type | Description |
|---|---|---|
| context | FinalizerContext | FinalizerContext Dependency injected by Salesforce at execution time. Contains the result of the |
| QueueableProcessStep that just executed. |
void
private void handleException(FinalizerContext context)| Name | Type | Description |
|---|---|---|
| context | FinalizerContext |
void