use of org.camunda.bpm.engine.rest.dto.task.TaskDto in project camunda-bpm-platform by camunda.
the class TaskRestServiceImpl method queryTasks.
@Override
public List<TaskDto> queryTasks(TaskQueryDto queryDto, Integer firstResult, Integer maxResults) {
ProcessEngine engine = getProcessEngine();
queryDto.setObjectMapper(getObjectMapper());
TaskQuery query = queryDto.toQuery(engine);
List<Task> matchingTasks = executeTaskQuery(firstResult, maxResults, query);
List<TaskDto> tasks = new ArrayList<TaskDto>();
for (Task task : matchingTasks) {
TaskDto returnTask = TaskDto.fromEntity(task);
tasks.add(returnTask);
}
return tasks;
}
Aggregations