Get the list of users that can performed a given task. Only enabled
users are returned.
Run ./mvnw
-
Install
target/task-candidates-rest-api-1.0.0-<version>.zip
in your tenantResources
using Bonita Admininstration Portal -
Call the API extension using
../API/extension/task/candidate?p=0&c=10&taskId=1001
wherep
andc
are pagination parameters andtaskId
the task instance id -
It will return a json array of
user
objects:[ { "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 ASC
can be used to sort the response array by userName, see UserSearchDescriptor for compatible sort descriptors. -
task_visualization
permission is used for this API