Get assignee value after task is completed


#1

I am claiming and completing my task using Rest API. After I claim the task, I am able to see the assignee variable populated with the assigned user. I need the assignee value after I complete the task to update the value in the table. Can you advice how can we get the assignee value?

I tried using the execution.getVariable(“assignee”) but it did not work


#2

For the scenario when we need to know who has completed a certain task in the process before we have used a Task Listener for event type assignment with inline groovy script

task.execution.setVariable('managerId', task.assignee);

If the database update has to be performed once the task is completed the same approach can be taken by to use complete event and Java class as listener.


Conditional gateway on assignee
#3

Thank you, I used Expression in the complete event task listener and it worked