How can i assign HumanTask to users , through other Humantask?

Hi Everybody,

i have 3 HumanTasks, and i want to assign users for the HumanTask 2 and HumanTask3 through HumanTask1.

Now i have 2 select boxes, and what i need is when the user select the user from the boxes and then pressed the send button, i want that those users are assigned into the HumanTask2 and HumanTask3

Regards.

Why have you added another question?

The previous question is still open and not yet answered, as to why I haven’t completed the answer I was on vacation.

So you have the user selection boxes, when you send back the data you have to send both names (or id’s) back to the process.

The process will then take the names (id’s) and start a script that uses

startprocess(processid, id)
wait for the process to start and then 
get the case assignedID, and finally
assignHumanTask(assignedID, id)

that’s the way i do it.

Question though.

Why are hT2 and hT3 tasks, would they not be better off as different pools (processes) in the same diagram?

for example

Pool1 Assigned to Manager, HTask
Pool2 no assignment, HTask
Pool3 no assignment, HTask

This way Pool2 and 3 do not show up on the list of processes but are able to be assigned through the assignTask API.

regards

Hi Sean,

I’m really confused, i don’t know which is the better way in order to do this .

I give you a bit more explanation :

  • i’m using PHP with PHP CURL LIBRARY

I have a web page where i can start cases and then obtain all the tasks of a user that have logged . In order to do this , firstly i obtain the processDefinitionId for a specific proceess(only i have one process), and this is an other problem , so , ¿how i can obtain all the processDefinitionId that exist?

In second place , in order to assign normally an human task to any user , i configure in actor filter an user name and id of this user, so , ¿are there any way that when i have selected the users from the selected boxes and then i have pressed the send button , i want to save these users in 2 variables and the do an mysql query in order to retrieve the ‘id’ of these users and finally put these variables in “id” position from actor filter.

I really hope that help me!

regards.