public class TaskDataReader extends Object
TaskAssigningRuntimeClient.findTasks(java.lang.Long, java.util.List<java.lang.String>, java.time.LocalDateTime, java.lang.Integer, java.lang.Integer, org.kie.server.api.model.taskassigning.TaskInputVariablesReadMode) methods.
This class manages the required pagination for getting all the results.| Modifier and Type | Class and Description |
|---|---|
static class |
TaskDataReader.Result |
| Modifier and Type | Method and Description |
|---|---|
static TaskDataReader |
from(TaskAssigningRuntimeClient runtimeClient) |
TaskDataReader.Result |
readTasks(long fromTaskId,
List<String> status,
LocalDateTime fromLastModificationDate,
int pageSize)
Executes the
TaskAssigningRuntimeClient.findTasks(Long, List, LocalDateTime, Integer, Integer, TaskInputVariablesReadMode)
method and return all the results. |
TaskDataReader.Result |
readTasks(long fromTaskId,
List<String> status,
LocalDateTime fromLastModificationDate,
int pageSize,
org.kie.server.api.model.taskassigning.TaskInputVariablesReadMode taskInputVariablesReadMode)
Executes the
TaskAssigningRuntimeClient.findTasks(Long, List, LocalDateTime, Integer, Integer, TaskInputVariablesReadMode)
method and return all the results. |
public static TaskDataReader from(TaskAssigningRuntimeClient runtimeClient)
public TaskDataReader.Result readTasks(long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, int pageSize, org.kie.server.api.model.taskassigning.TaskInputVariablesReadMode taskInputVariablesReadMode)
TaskAssigningRuntimeClient.findTasks(Long, List, LocalDateTime, Integer, Integer, TaskInputVariablesReadMode)
method and return all the results. The paging reading is managed internally by this method.
fromTaskId - filters the tasks with taskId >= fromTaskId. If null no filtering is applied.status - filters the tasks that are in one of the following status. If null or the empty list no filtering
is applied.fromLastModificationDate - filters the tasks with lastModificationDate >= fromLastModificationDate. If null
no filtering is applied.pageSize - sets the pageSize for the paged reading.taskInputVariablesReadMode - establishes the tasks input variables reading mode.TaskInputVariablesReadModepublic TaskDataReader.Result readTasks(long fromTaskId, List<String> status, LocalDateTime fromLastModificationDate, int pageSize)
TaskAssigningRuntimeClient.findTasks(Long, List, LocalDateTime, Integer, Integer, TaskInputVariablesReadMode)
method and return all the results. The paging reading is managed internally by this method.
fromTaskId - filters the tasks with taskId >= fromTaskId. If null no filtering is applied.status - filters the tasks that are in one of the following status. If null or the empty list no filtering
is applied.fromLastModificationDate - filters the tasks with lastModificationDate >= fromLastModificationDate. If null
no filtering is applied.pageSize - sets the pageSize for the paged reading.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.