| Methods / Methods for Manual Work Items (Tasks) |
Reassigns a work item to another participant, and update the user name. The extended method includes client data.
| Name | Type | Description |
|---|---|---|
| wID | string | A 32-byte unique work item (task) ID that represents a manual work item. |
| userID | string | A string that contains a user ID for the user associated with the work item. |
| clientData | string | A string that contains the client data. If clientData is null, the system will keep existing client data, otherwise the relevant data would be overwritten. |
WFEvent object that provides the status of the transaction. Possible statuses are Success, Failed, and Sent.
string clientData= "<?xml version="1.0" … …";
string workItemID = ...// for example, "0006EE0244ED431CB93F6253060DD21F"; // Work item id
string newAssigneedUserID = …// for example @"[DOMAIN NAME]\[USER NAME]"; // new userid
try
{
WFEvent evt = _svc.ReassignWorkItemEx(workItemID,
newAssigneedUserID, client);
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}