@ 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 ) ; }
Get the list of pending tasks for a given task type .