public void WorklistItems() { // Gets all the worklist items for the authenticated user WorklistItems worklistItems = ManagementServer.GetWorklistItems("", "", "", "", "", "", ""); foreach (WorklistItem worklistItem in worklistItems) { Console.WriteLine("WorklistItem: {0}", worklistItem.ID); } int procInstId = 1; int actInstDestId = 1; int worklistItemId = 1; //If ID = 0, it means that the items' state is "available" and it will redirect the available item. //If ID != 0, it means the items' state = "Open" and it will redirect it retaining it's "Open" state. bool redirect = ManagementServer.RedirectWorklistItem("K2:Domain\\User1", "K2:Domain\\User2", procInstId, actInstDestId, worklistItemId); //If item not in "Open" state, an exception will be thrown. bool released = ManagementServer.ReleaseWorklistItem(worklistItemId); }