How to pass task assignee to delegate class from input parameter

Hi,

I have a use case where I need to pass current user task assignee from input parameter to task Listener delegate class on update Event.
I am trying to do by using javascript.

can anyone please help me .

You can add a new “assignment” task listener and set “task.assignee” as process variable which can then be accessed in any task level events including update.

Thankyou for your response
but it seems not working as my use case is something like a user task is assigned to person A initially but when someone will re-assign the the user task to person B then I should be able to call a delegate class in task listener and I will be able to pass person B user id(i.e current Assignee) to the delegate class.

same I am trying to do it using input parameter but its not working saying “task is not defined”
code - task.assignee

Can you please share your model? when the task is reassigned it might trigger an update event did you try with update event?

got the solution by using update event.

Thankyou

1 Like