I have created a batch class to make callout from third party and get record and then save it in the salesforce.
Here is the sample of the code of my start method
public Database.QueryLocator start(Database.BatchableContext bc) {
totalExecution = subdomainList.size();
String query = 'select id FROM Account limit '+totalExecution ;
return Database.getQueryLocator(query);
}
this start will create scope for execute method.It work fine if my org have contain any record.But it failed when the org have no record. Is there any way to create scope on the basics of the integer value which i get on this(totalExecution) variable.