| Methods / Methods for Manual Work Items (Tasks) | |
Web Services
Reassigns a work item to another participant, and update the user name.
public virtual WFEvent ReassignWorkItem(string WorkItemID, string UserName)
| Name | Description |
|---|---|
WorkItemID |
|
UserName |
|
WFEvent object that provides the status of the transaction. The possible statuses are:
IWFWorkflowService svc = GetWorkflowService();
string WorkItemID = …// "0006EE0244ED431CB93F6253060DD21F"; // Work item ID
string UserName = …// @"[DOMAIN NAME]\[user name]"; // new user ID
try
{
WFEvent evt = svc.ReassignWorkItem(WorkItemID, UserName);
}
catch(Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
3.2.0.4 and higher