finish modifying processBatch to process by transactionId