Get the actual participant from ActivityInstanceDestUser After Sharing the workitem
Currently, it is not able to get back the actual participant name from workflow as the value of ActivityInstanceDestUser is the original participant only. In order to get back the actioner through the workflow instance, we have to create a custom data field and keep the actual participant name once the participant completes the task.
A Shares to B
B completes the task
A is marked as ActivityInstanceDestUser ( B performs on behalf of A)
But there is no way to find out the actual participant in default workflow data field. The actual participant and action result can only be found in Activity Destination Instance and Event Instance report.
Therefore providing the actual participant in workflow context can help to solve this problem.