cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the assignee of the previous task

vahidalz
Champ in-the-making
Champ in-the-making
First, I apologize because my English language writing is not good enough.
My question is how can I find the previous task assignee . According to this website content, i understood that one of the  solutions  of this problem is  to store previous task assignee in process instance variable. but when  exist fork and join in process,  this solution does not  work.for example suppose  that when task1 completed parallel task2 and task3 created. then when task2 completed before task3,  assignee of task2 stored in process variable  and then when in task3 i want go to previous task assignee, result is task2 assignee . but correct result should be Task1 assignee.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
You can get the BpmnModel to determine which was the task preceding the current task.
Then, using the ids of the the UserTask objects, you can query the historic tasks using those ids.