can't assign a task with jquery

1
0
-1

Hi. I'm trying to assign a task to a user with jquery, but I have an error: - 500 internal server error - class java.lang.IllegalArgumentException - Can't parse JSon

my code is:

var datos = {assigned_id:2}; $.ajax({url:"/bonita/API/bpm/humanTask/"+task_id, type: 'put', data: datos, success: function () { //:v }});

hope someone can help me.

Comments

Submitted by florian.baillagou on Tue, 03/10/2015 - 16:59

Try with {"assigned_id":"2"} ?

Submitted by marcosjeda93 on Tue, 03/10/2015 - 17:03

Thanks!, but, I tried and got the same error :c

Submitted by florian.baillagou on Tue, 03/10/2015 - 17:13

It worked for me using a REST client with {"assigned_id":"2"} =/

If I try with your json {assigned_id:2}, I get your error.

Can you check the value of your datos variable using Firebug or Chrome javascript debugger ?

Submitted by marcosjeda93 on Tue, 03/10/2015 - 19:11

doesn't work, I have no idea what to do :| can you give me some contact please, I really need help.

Submitted by antoine.mottier on Mon, 03/16/2015 - 16:21

Can you share your process this way I can take a quick look at it?

Also if you can mention the version of Bonita you are using?

If you need urgent help you can get help from Bonitasoft consulting team: http://www.bonitasoft.com/how-we-do-it#how-we-do-it_consulting

Thanks

No answers yet.
Notifications