Get current user Id in Task Operations

Hello All,

How can I get the current user id from within a script in a Operations assignment?

I want to store the user id in a BDM for future reference and auditing.

Thank you.

After a lot of googling, the answer is that variable is no longer available,

Actually this is possible. In the operation define a Groovy script that simply return the taskAssigneeId variable.

You can find an example of this in the vacation management example that store the id of the user who approve or reject the vacation request in the “Review request” step of the “New Vacation Request” process.

@antoine.mottier, i.e.we write a groovy script: return taskAssigneeId;