cancel
Showing results for 
Search instead for 
Did you mean: 

how can i have total instances completed using activiti-rest i want to have details about the instance-completed number

mobarkiyasmine
Confirmed Champ
Confirmed Champ

how can i have total instances completed using activiti-rest i want to have details about the instance-completed number

6 REPLIES 6

bassam_al-saror
Star Collaborator
Star Collaborator

What instances? Process instances or Task instances. You use the history endpoints to query completed process & task instances Activiti User Guide . Returned JSON contains a total property which indicate the total results.

yes i know but i would to have only the information total I do not need other information I want it to show me the instance number only, is there a URI that gives this information since the number of instance I need it to display it in a j2ee application

Responses are JSON format and list results will always contain "size", "total", "start", & "data" .  If you don't want any data back you can specify size 0 in the JSON request body (see Activiti User Guide). You will get a response like

{
"size": 0,
"total": 101,
"start": 0,
"data": []
}

so there is not a uri that gives me only  total, as you show me it gives me size, total .....

There is no uri that will give only the total.

Tank you Bassam