public List getLightweightUserTasks()

in src/main/java/com/epam/digital/data/platform/usrtaskmgt/remote/impl/UserTaskRemoteServiceImpl.java [71:87]


  public List<UserTaskLightweightResponse> getLightweightUserTasks(String rootProcessInstanceId,
      String assignee, Pageable page) {
    log.debug("Getting assigned to current user or unassigned lightweight user tasks of "
        + "root process instance {}. Paging and sorting params - {}", rootProcessInstanceId, page);

    var taskQueryDto = buildDdmTaskQueryDto(assignee, page);
    taskQueryDto.setRootProcessInstanceId(rootProcessInstanceId);
    var paginationQueryDto = PaginationQueryDto.builder()
        .firstResult(page.getFirstResult())
        .maxResults(page.getMaxResults())
        .build();

    var dtos = taskRestClient.getLightweightTasksByParams(taskQueryDto, paginationQueryDto);

    log.debug("{} user tasks were found", dtos.size());
    return userTaskDtoMapper.toUserTaskLightweightResponse(dtos);
  }