Skip to main content


 

Symptoms


How do I assign user who completed a task into a data field to use as destination for all future tasks
 

Diagnoses


We have a basic 5 task workflow that I created in K2 Designer for SharePoint.
The first task goes to a group of users. The user that completes this task will be the destination for the 4 remaining tasks.

I have set up a field (Processor) that I am using as the destination for the 4 tasks but cannot find a way of automating the population of this.
 

Resolution

Make a use of 'Activity Instance destination' Smartobject that can be found under the following path:

Workflow Reports andgt Workflow General

Use this smartobject to populate the data field 'Processor' with the destination user who made the action.

What you need to get the right user is to pass the following as input for the smartobject list method:

1- Activity name
2- Process Name
3- Final Action (i.e Approve)
4- Folio or process Instance ID (it would be better if you pass both values)

This will return the user who actioned the task to your data field, then you can set it as destination.
 




 
Be the first to reply!

Reply