Complete a task using api rest

1
+1
-1

Good day.
I want to finish a task using bonita's rest api.
What is the endpoint or endpoints that I should use?

I have already managed to take or release a task with the endpoint
http://localhost:8080/bonita/API/bpm/humanTask/1240015
and with the bodysuit
{"assigned_id":4 }

but if i want to set
{"state": "completed"}
it does not allow me to do this put

some help?

Comments

Submitted by Dibyajit.Roy on Sat, 12/24/2022 - 17:24

Hello
I am also looking for answer for this question.
If you find a Solution , please post the answer here along with code examples.

thanks

Submitted by weglineduardo on Mon, 12/26/2022 - 21:23

put url

http://localhost:8080/bonita/API/bpm/humanTask/1280124

I want to make a put to the task and I fulfill the expected contract

{ "state": "completed",

"serviceRequestInput": [ {

"notas": "notas aqui"

} ]}

but it answers me

"message": "USERNAME=walter.bates | org.bonitasoft.engine.bpm.contract.ContractViolationException: Error while validating expected inputs: Expected input [serviceRequestInput] is missing"

Thanks for commenting on a solution.

No answers yet.
Notifications