Actor set but submit doesnt work, and in error log is: "task isnt assigned"



I have a good question, that may have a simple solution, but i dont really get it.

I created a main page, that has a list of objects, each objects in the list has a task attached to it. When you select one object, it will redirect you to a page, where you can change this object, then with the submit button the element will change according to the changes made in this page. It doesnt work for me, actors in the studio have been set, a group is mapped to the actor. The error log is saying the task is not assigned. In bonita portal i can submit this task, but before i do that i need to "take" the task. But when I readirect the user to the page, it cant submit, and error log says the task isnt assigned.
How can I make this work?

This is just like the vacation request example, I have a main page, select a reqiest for review, and in my case i cant submit the review, and bonita log is saying the task isnt assigned.

1 answer

This one is the BEST answer!

You need to take the task as you do when you are in the portal.

In other words, if you have a task where more than 1 person can do it, you have to assign it first, before you can complete it.

To do that, you have to call the following API rest: ../API/bpm/userTask/:userTaskId
The method have to be PUT and the payload have to be {"assigned_id":":userId"}



Submitted by kurucsai.zoltan... on Wed, 07/31/2019 - 07:50

Thank you for your answer, already found an easier solution, in the designer, where you edit your form, the button for submit task, has an option to assign task. This method works well for me. But i will remember your method to, just in case i need it.