REST API calls for Counters


Example for Available tasks counter
API/bpm/humanTask?p=0&c=5&f=user_id%3D1&f=state%3Dready
more counters using
bpm/archivedHumanTask
bpm/case
bpm/archivedCase
bpm/process
content-range: 0-5/2
0 = provides the page 0 (1st page)
5 = max 5 results per page
2 = represents the total number of results

In this example the counter value is 2
HumanTask.getFromCurrentUser({
	p:0,
	c:5,
	d:'rootContainerId'
}).$promise.then(function(tasks) {
	$scope.tasks = tasks.items;
	$scope.totalTasksToDo = tasks.totalCount;
});
the counter is stored in $scope.totalTasksToDo