docs: function defineProcessBatchTask() {
      const taskDef = TaskDef.defineTask(processBatch.name, processBatch, batchAndCancellableSettings);
      taskDef.defineSubTask(executeAllProcessOneTasks.name, executeAllProcessOneTasks, batchAndCancellableSettings);
      taskDef.defineSubTask(executeAllProcessAllTasks.name, executeAllProcessAllTasks, batchAndCancellableSettings);
      taskDef.defineSubTask(discardUnusableRecords.name, discardUnusableRecords, batchAndUnusableRecordsSettings);
      taskDef.defineSubTask(preFinaliseBatch.name, preFinaliseBatch, batchSettings);
      return taskDef;
    }