Hi,
this <code>
"total":16,"start":0,"sort":"name","order":"asc","size":10
</code>
should be because of the paginated response.
the default page size being set to 10 even you have 16 records in the DB the first page is starting from 0 with a size of PAGE_SIZE (10 in your case)
and then the second page must be starting from 11 with a size of 6
for details see:
<code>
ProcessDefinitionCollectionResource.java
</code>
method:
<code>
@RequestMapping(value="/repository/process-definitions", method = RequestMethod.GET, produces = "application/json")
public DataResponse getProcessDefinitions(@RequestParam Map<String,String> allRequestParams, HttpServletRequest request) {
</code>
there you can see a sequence of code which is used for preparing the pagination setup:
<code>
// In case pagination request is incomplete, fill with values found in URL if possible
if (paginateRequest.getStart() == null) {
paginateRequest.setStart(RequestUtil.getInteger(requestParams, "start", 0));
}
if (paginateRequest.getSize() == null) {
paginateRequest.setSize(RequestUtil.getInteger(requestParams, "size", 10));
}
if (paginateRequest.getOrder() == null) {
paginateRequest.setOrder(requestParams.get("order"));
}
if (paginateRequest.getSort() == null) {
paginateRequest.setSort(requestParams.get("sort"));
}
</code>