if (queryRequest.getTenantIdLike() != null) {
query.processInstanceTenantIdLike(queryRequest.getTenantIdLike());
}
if (Boolean.TRUE.equals(queryRequest.getWithoutTenantId())) {
query.processInstanceWithoutTenantId();
}
return new HistoricProcessInstancePaginateList(restResponseFactory, serverRootUrl).paginateList(
allRequestParams, queryRequest, query, "processInstanceId", allowedSortProperties);
}