since ‎23-08-2020
‎25-08-2020
JJ_JayantJain
Level 1
Re: Get Current User who invokes particular step in the w... JJ_JayantJain - Adobe Experience Manager
problem is still not resolved.
72
Views
0
Likes
0
Comments
Re: Get Current User who invokes particular step in the w... JJ_JayantJain - Adobe Experience Manager
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.
79
Views
0
Likes
0
Comments
Re: Get Current User who invokes particular step in the w... JJ_JayantJain - Adobe Experience Manager
final List histories = wfSession.getHistory(workItem.getWorkflow()); final HistoryItem firstItem = histories.get(0); String lastParticipant= firstItem.getUserId();
79
Views
0
Likes
0
Comments
Re: Get Current User who invokes particular step in the w... JJ_JayantJain - Adobe Experience Manager
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).
78
Views
0
Likes
0
Comments
Get Current User who invokes particular step in the workflow. JJ_JayantJain - Adobe Experience Manager
I tried to get current user using session and authorizable. But none of them giving the current user who invokes the particular step.Is there any other way to get the current user details ?
155
Views
0
Likes
7
Answers and Comments