I am creating a process instance from process definition,then i have to set the assignee to two tasks under that process instance(process definition contain two user tasks unassigned),But as i get only one/current task (task 1) under process instance i am not able to set the assignee to task 2 in the process instance.
My requirement is to set assignee dynamically to each process instance created from process definition,and then get list of tasks for the assignee set previously.