Skip to main content

Hi,


Now I use K2 4.5, and I would like to keep acting user for tracking. So now in workflow, I use "ActivityInstanceDestUser" which is fine in almost case.


But if the destination user redirects task to other user manually or by setting out of office, this field still is the original destination user...


So my question is, how can I detect that who is the "real" acting user for this activity.


Thanks.

Hi,


You can query the Activity_Instance_Destination SmartObject and filter on the ProcessID and ActivityInstanceID and then look for the user with a status of Complete. I would use a SmartObject Reference configured with these Filters and then use a Data Event just after my client event to pick up the username and then write it to a process data field.


I hope this helps!


That seems like a bug in ActivityInstanceDestUser API if it's not displaying the actual destination user when redirect/OOO is used.


The original DestUser should go to the audit and we can use SmartObject to retrieve it if needed.


 


Reply