Get Participant selected from the previous step (Workflow) | Community
Skip to main content
New Participant
October 16, 2015
Solved

Get Participant selected from the previous step (Workflow)

  • October 16, 2015
  • 2 replies
  • 1225 views

I am writing a custom workflow step which sends email. The step previous to send mail is a participant step, where the participant is a group. Anyone in that group can complete this step. Now in my custom step, I want to get the user who completed this participant step. Please let me know how I can achieve this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kunal_Gaba_

I guess you can get this information from the HistoryItem object retrieved from WorkflowHistory object. https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/workflow/exec/HistoryItem.html##getUserId()

You can check this thread for reference - https://forums.adobe.com/thread/1156064

2 replies

Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
October 16, 2015

I guess you can get this information from the HistoryItem object retrieved from WorkflowHistory object. https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/workflow/exec/HistoryItem.html##getUserId()

You can check this thread for reference - https://forums.adobe.com/thread/1156064

Lokesh_Shivalingaiah
New Participant
October 16, 2015

You can send an email in the same step itself . Why do you want it to be in a separate step ??

Can you talk more about your usecase