code: @Service
      public List<Task> getListOfPendingTask(String taskType, Integer start, Integer count) {
          List<Task> tasks = executionService.getPendingTasksForTaskType(taskType);
          int total = start + count;
          total = (tasks.size() > total) ? total : tasks.size();
          if (start > tasks.size()) start = tasks.size();
          return tasks.subList(start, total);
      }
docs: Get the list of pending tasks for a given task type.
  
  @param taskType Name of the task
  @param start Start index of pagination
  @param count Number of entries
  @return list of pending {@link Task}