Methods / Methods for Manual Work Items (Tasks) |
REST
POST
Unassigns a work item that was previously assigned to a user. This method applies to work items that can be assigned to members of task groups, where a work item can be assigned to or claimed by any of a group of users.
https://[domain]:[port]/AgilePointServer/Workflow/UndoAssignWorkItem/[workItemID]
https://[domain]:[port]/AgilePointService/Workflow/UndoAssignWorkItem/[workItemID]
Name | Description |
---|---|
workItemID |
|
Name | Description |
---|---|
clientData |
|
$("#btnUndoAssignWorkItem").click(function () { var JSONObject = { clientData: null }; $.ajax({ url: "https://mydomain:9011/AgilePointServer/Workflow/ UndoAssignWorkItem/D4751D6380F141A4AC89AF6820B988D5", data: JSON.stringify(JSONObject) }); });
public String UndoAssignWorkItem(String workItemID, String clientData) { String URI = "http://mydomain:9011/AgilePointServer/Workflow/UndoAssignWorkItem/" + workItemID; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); JSONObject postData = new JSONObject(); try { postData.put("clientData", ""); return ops.POSTMethod(URI, postData.toString()); } catch (JSONException e1) { e1.printStackTrace(); } return ""; }
public string UndoAssignWorkItem() { string URI = "http://mydomain:9011/AgilePointServer/Workflow/ UndoAssignWorkItem/27BDCAFF90954753B0F8FA8F864EA79C"; string jsonRequestData = "{\"clientData\":\"" + null + "\"}"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); return ops.POSTMethod(URI, jsonRequestData); }
WFEvent object that provides the status of the transaction. The possible statuses are:
{ "ActivityInstID": "A27AD9FE81164DBDB09E9E7CEDCD0930", "AutoStart": true, "CustomAttributes": null, "Diagnostic": true, "EndDate": "\/Date(928149600000+0000)\/", "Entries": 1, "Error": null, "EventID": "FEACD610F5B24901B231F9038D74DF88", "EventName": "UndoAssignWorkItem", "HighPriority": true, "ParamsXml": "<?xml version=\"1.0\" encoding=\"utf-8\"?> <WFEvent> <param name=\"ProcInstID\" value=\"B7F0ACFA610349B4BF10A4DAB8E93458\" \/> <param name=\"ActivityInstID\" value=\"A27AD9FE81164DBDB09E9E7CEDCD0930\" \/> <param name=\"HighPriority\" value=\"True\" \/> <param name=\"WorkItemID\" value=\"9FA1E98B85264545A62384A57D24FFF4\" \/> <\/WFEvent>", "ParentProcInstID": "", "ProcDefID": "", "ProcInstID": "B7F0ACFA610349B4BF10A4DAB8E93458", "ProcInstName": "", "Sender": "demo3\\brian.lucas", "SentDate": "\/Date(1394152264074+0000)\/", "SourceWorkItemID": "", "Status": "Sent", "UserID": "", "WorkItemID": "9FA1E98B85264545A62384A57D24FFF4", "WorkObjectID": "", "WorkObjectInfo": "" }
AgilePoint BPMS v5.0 R2 and higher