Symptoms
When I query an Activity Instance Destination SO with an instance ID I get data. When I use that same smartobject in a list view I get data as well. If I use that same view or smartobject within a workflow it does not return data. I did see the following article (http://community.k2.com/t5/K2-blackpearl/WorkflowReports-WorkflowGeneral-reporting-smart-objects/ta-p/87023) but this is not the case because it still does not show the information after a delay when it shows it in the tester. Please see the service instance setup attached.
Diagnoses
N/A
Resolution
When executing the Activity Instance Destination SMO on a particular process instance, the user executing the SMO needs to have View or Admin rights on the process that generated that process instance. The process executing the process to generate the pdf from k2 form most likely to run under the k2 service account, make sure to grant k2 service account View or Admin permission on the process that generated the process instance passed into the Activity Instance Destination SMO resolved the issue.