@gvaem
Workflow processes run in the background and are not directly tied to a specific user session. So, that is the reason you won't get current user details.
If you assign someone to the workflow step, you should get this correctly.
String currentUser = workItem.getCurrentAssignee();
Can you...