How to list pending Travel Requests assigned to a manager using REST API?

Hi experts,

I’m testing with Bonita Community 7.2.3 and the Travel Requests sample.

I’d like to know how to list all the Travel Request assigned to a manager in order to create a web page listing all of them, using the REST API.

Regards,
Jose.

I’ve found the solution myself. Please validate if it’s the correct path to do it.

http://localhost:8080/bonita/API/bpm/humanTask?p=0&c=10&f=assigned_id=3

Where:
p=0 Page = 0
c=10 Record count = 10
f=assigned_id=3 Assigned to user_id = 3

How to get the user_id:

http://localhost:8080/bonita/API/identity/user?p=0&c=10&s=helen.kelly
Where:
p=0 Page = 0
c=10 Record count = 10
s=helen.kelly Search username=helen.kelly

Hope it helps,
Jose.

Thanks Jose,

good work in sharing,

regards
Seán

Thanks Sean!
Sorry for the direct request, but I’m really stucked trying to complete a Human Task of the Getting Started Tutorial, using the REST API. I’ve posted it in the forum. Just if you have some spare time, I’ll appreciate :slight_smile:

Regards,
Jose.

Hi Sean,

I ended up my stuck! Using Membrane Monitor (http://www.membrane-soa.org/soap-monitor/) I’ve captured the REST operation done when approving the Travel Request via the form. I was confused by the doc, trying to use /bonita/API/bpm/activity/{id}/ when it’s actually:

POST:/bonita/API/bpm/userTask/{userTaskId}/execution
Payload:
{“status”:“refused”,“refusalReason”:“No budget available”}

Hope it helps to someone!