Symptoms
I have a task which the user can approve or decline without opening the form. We use "Out of Office" extensively, but still need to know which person actually completes a task. How can I determine who completes a task when the user does not need to open a Smartform in order to complete the task.
Diagnoses
It is possible to use the activity instance destination workflow reporting object but a bug was found when trying to expose this in a process.
A bug has been logged for this issue - BUG - Cannot use "Activity Instance Destination" smo in workflow.
Resolution
Client got around this issue with custom code (not supported) for the interim see below code used:
K2.ProcessInstance.DataFieldsl"ActualUser"].Value = K2.ActivityInstanceDestination.ActivityInstance.WorklistSlotso0].User.Name