Skip to main content

Hi


I have set some of the Worklist items to sleep.


Can API's allow us view all the sleeping work items?  is there a way to activate them again?

Any body!???


this is important to me.


Hi,


By adding a filter field on WorklistItemStatus all the sleeping items will be returned when you do an OpenWorklist() using the SourceCode.Workflow.Client API.

WorklistCriteria crit = new WorklistCriteria();
crit.AddFilterField(WCField.WorklistItemStatus, WCCompare.Equal, WorklistStatus.Sleep);
Worklist wlist = mycon.OpenWorklist(crit);

To "wake up" an item call the .Sleep() method, passing in a false parameter.

witem.Sleep(false);

I hope this helps!


Many thanks sir


Reply