Skip to main content


 

Symptoms

 


How can you wake up a slept task/worklist item?
 

 

Diagnoses

 


This functionality currently do not exists with K2 Workspace.
 

 

Resolution

The slept item can be waken by the same user that slept it either by using the the SmartForms Worklist control or the SharePoint Worklist App Part:

 

 

 

1. If Worklist Control create a Smartforms View/Form and add the Worklist control. If Worklist App part, edit a page in SharePoint and add this App Part.

 

 

 

http://help.k2.com/onlinehelp/K2smartforms/UserGuide/4.6.11/default.htm#Worklist_Control.html

 

 

 

http://help.k2.com/onlinehelp/K2ForSharePoint/UserGuide/4.6.11/default.htm#Add/Add_Steps.htm#Add_the_K2_App_Parts_to_a_SharePoint_Site

 

 

 

2. Run the View/Form/SharePoint Page and edit the Filter for the Worklist control

 

 

 

3. Remove the default 'where Status Not Equals Sleep' filter this will now show items that are in 'Sleeping' state

 

 

 

4. Select the sleep item and use the 'Unlock' icon to wake this sleeping item

 

 

 

The SmartForms Worklist control or the SharePoint Worklist App Part will only open as the current user context a feature currently does not exist to do this from a management aspect. As such, a feature request was also logged for K2 Administrators to perform in action on behalf of users from a management context.

 

 

 

This functionality may be possible, if you develop a custom application that makes use of the 'SourceCode.Workflow.Client' API. When using the 'SourceCode.Workflow.Client' API, if you run the application as an account that have 'Impersonate' K2 Server rights you can impersonate the user that you want, open their worklistitem and wake it via code. Please see the following documentations below:

 

 

 

Impersonating a user via 'SourceCode.Workflow.Client' API: http://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#how_to_use_impersonate_user_using_the_k2_api.html

 

 

 

Waking a slept item with code:

 

http://community.k2.com/t5/K2-blackpearl/Can-t-wake-up-sleeping-worklist-items/td-p/47591

 

 

 

Perhaps the community site (http://community.k2.com/) can provide additional guidance if needed.

 

 



 
Be the first to reply!

Reply