Skip to main content
Nintex Community Menu Bar

Reactivating worklist items while sleep.

  • August 16, 2009
  • 3 replies
  • 11 views

Forum|alt.badge.img+11

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?

3 replies

Forum|alt.badge.img+11
  • Author
  • August 19, 2009

Any body!???


this is important to me.


Forum|alt.badge.img+10
  • Nintex Partner
  • August 21, 2009

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!


Forum|alt.badge.img+11
  • Author
  • August 22, 2009

Many thanks sir