Managing Hidden Tasks using the REST API.
1 answer
In order to hide a task, you can do a POST on:
http://localhost:8080/bonita/API/bpm/hiddenUserTask/
with:
{"user_id":"12","task_id":"32"}
where you should use your own user_id and task_id. And to unhide a task, you can do a DELETE on:
http://localhost:8080/bonita/API/bpm/hiddenUserTask/12/32
with:
{"user_id":"12","task_id":"32"}
using your own user_id and task_id.
Comments
OK thanks.
I am getting the following error:
REQUEST
RESPONSE
Any ideas why?
Ah, I know why. The humanTask list I have is not filtering out hidden tasks and the task was already hidden. How to I get non-hidden tasks only? Currently I am doing:
http://localhost:8084/bonita/API/bpm/humanTask?c=10&p=0&f=state%3Dready&o=dueDate+DESC
but it appears this includes hidden tasks.
You need to add a filter for your user, for example: