Task candidates Rest API Extension
Get the list of users that can performed a given task. Only enabled users are returned.
Usage
-
Install
target/task-candidates-rest-api-1.0.0-<version>.zipin your tenantResourcesusing Bonita Admininstration Portal -
Call the API extension using
../API/extension/task/candidate?p=0&c=10&taskId=1001wherepandcare pagination parameters andtaskIdthe task instance id -
It will return a json array of
userobjects:[ { "id" : 15, "userName": "helen.kelly", "lastName": "Kelly", "firstName": "Helen", "title": "Mrs.", "jobTitle": "HR manager", "lastConnection": "2020-06-29T08:54:23+0000", "lastUpdate": "2020-01-02T13:54:23+0000", "enabled": true, "createdBy": -1, "managerUserId": 21, "creationDate": "2019-01-02T13:54:23+0000", "iconId: 123 } ] -
o=userName ASCcan be used to sort the response array by userName, see UserSearchDescriptor for compatible sort descriptors. -
task_visualizationpermission is used for this API
Repository URL : https://github.com/Bonitasoft-Community/task-candidates-rest-api