I need to obtain all the process definitions based on the deployment id as I wanted to treat a deployment as a single process which can contain many subprocesses (sub bpmns). There are 16 bpmns files with one of them as the main top level bpmn. When I use the following REST service:
repository/process-definitions/?deploymentId=XXXX
It returned only 10 processes out of the 16. At the end of the json message is this:
"total":16,"start":0,"sort":"name","order":"asc","size":10
This doesn't make sense. The total of process definitions is 16 but the size is 10. Is there a bug in the REST api or is there something in the BPMN rules that I might have missed?