Build a Batch lifecycle
Batch Apex splits a big job into chunks.
Your task
Complete the Batch class so execute marks the target Accounts Processed and finish writes Batch finished to a marker Account.
public class AS_01C8E9DAF4E0_AccountBatch implements Database.Batchable<SObject> {
private Set<Id> accountIds;
private Id markerId;
public AS_01C8E9DAF4E0_AccountBatch(Set<Id> accountIds, Id markerId) {
this.accountIds = accountIds;
this.markerId = markerId;
}
public Database.QueryLocator start(Database.BatchableContext context) {
return null;
}
public void execute(Database.BatchableContext context, List<SObject> scope) {
}
public void finish(Database.BatchableContext context) {
}
}Requirements
- selectsOnlyTargetIds should pass
- processesTwoHundredInOneChunk should pass
- marksFinishAfterProcessing should pass
- finishesAnEmptySelection should pass
- completesAsBatchJob should pass