cancel
Showing results for 
Search instead for 
Did you mean: 

How to get username who claimed a task on pool assignment with Javascript?

billydekid
Star Contributor
Star Contributor

Hi,

I created a custom pool-assignment task workflow. One of my user task is ran as admin (runAs admin) which will change the original reviewer (assignee) to "admin".

How to retrieve the actual person who claim that task with Javascript?

Thank you.

[bayu]

1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator

You can't retrieve that information after the fact. This is one of the many reasons why runAs with "admin" (or any other user) should be used carefully as it can hide for really performed an action unless extra effort is taken to record that information. E.g. in your user task you could use a task listener on "complete" event to record the "fully authenticated user" in an additional task variable (or as an override to the task assignee).