| Methods / Methods for Manual Work Items (Tasks) | |
Web Services
Cancels a manual work item based on a specified manual work item identifier. This method also contains an added routine to track the method call duration. Only the following manual work item status can transition to a Canceled status: Assigned, New, Pseudo, and Overdue.
public virtual WFEvent CancelWorkItemEx(string workItemID, string clientData)
| Name | Description |
|---|---|
workItemID |
|
clientData |
|
WFEvent object that provides the status of the transaction. The possible statuses are:
IWFWorkflowService svc = GetWorkflowService();
string workItemID = …// work item ID
string clientData = null;
try
{
WFEvent evt = svc. CancelWorkItemEx(workItemID, clientData);
}
catch( Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
3.2.0.4 and higher