| Methods / Methods for Manual Work Items (Tasks) | |
Web Services
Updates a manual work item or automatic work item.
public virtual void UpdateWorkItem(string workItemID, NameValue[] attributes)
| Name | Description |
|---|---|
workItemID |
|
attributes |
|
None.
IWFWorkflowService svc = GetWorkflowService();
string workItemID = …// work item ID of manual work item or automatic work item.
try
{
NameValue[] attributes = NameValue.Array(
"NAME", "[New Name]",
"DUE_DATE", [DateTime]); // for example, DateTime.Now.AddDays(3.0)
svc.UpdateWorkItem(workItemID, attributes);
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
3.2.0.4and higher