Skip to main content


 

Symptoms


K2 Custom Delegation
 

Diagnoses


Dears,

Kindly note that we have a business requirements that we need to create a custom delegation page for the managers. can you help us how to get all the tasks for the users that they are under specific manager specially if they were in K2 Roles, and how to delegate the tasks.


Thank you,
 

Resolution

You should enable managed worklist feature in workflow server properties in the workspace.
For opening workitem of subordinates, you can use the OpenWorklist method with supplying the subordinate domain login prefixed with security label as in the below example.
Worklist wl = con.OpenWorklist("ASP", "K2:domain estemployee")
Once the worklist object is received you can iterate through the list to look into each workitem. For work item you can call the Redirect method for redirection or for delegation you can use the Delegate method, though the delegate will require you to do some more coding.




 
Be the first to reply!

Reply