If I iterate through documents in the custom batch processing script, the sequence is not correct:
How can I make sure the sequence of documents will match the order of them in the batch?
Modify the script the following way:
for (int i = 0; i < Batch.Documents.Count; i++)
Processing.ReportWarning("Document["+i+"]: index = ") + Batch.Documents[i].Index.ToString();