List histories =
wfSession.getHistory(workItem.getWorkflow()); HistoryItem firstItem =
histories.get(0); String currentParticipant= firstItem.getUserId(); As
per your response, tried the same code, but its not giving current user.
It's giving last user.
workItem.getWorkflow().getInitiator();Gives the details of user who
initiated the workflow, which is not my requirement.I need to get the
detail of the user, who currently logged in and running a particular
step(process step or dynamic participant step).