Expand my Community achievements bar.

SOLVED

Get Participant selected from the previous step (Workflow)

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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

Avatar

Level 10

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