| Methods / Other Web Services | |
REST
POST
Retrieves all audit trail items.
https://[domain]:[port]/AgilePointServer/Workflow/QueryAuditTrail
https://[domain]:[port]/AgilePointService/Workflow/QueryAuditTrail
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
where |
|
$("#btnQueryAuditTrail").click(function () {
var JSONObject = { where: "CATEGORY = 0 AND PURPOSE='Check-in process definition'"};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/QueryAuditTrail",
data: JSON.stringify(JSONObject)
});
});
public String QueryAuditTrail(String where) {
String URI = "http://mydomain:9011/AgilePointServer/Workflow/QueryAuditTrail";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
try {
postData.put("where", where);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
public string QueryAuditTrail()
{
string URL = "http://mydomain:9011/AgilePointServer/Workflow/QueryAuditTrail";
string jsonRequestdata = "{
\"sql\":\"CATEGORY = 0 AND PURPOSE='Check-in process definition'\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URL, jsonRequestdata);
}
An array list of WFAuditTrailItem objects.
[{
"Category":0,
"DateOccurred":" \/Date(928149600000)\/",
"Description":"Core.FailedUncheckOut.Ownership",
"ObjectID":"",
"ObjectInfo":"",
"Performer":"DEMO3\\Administrator",
"Purpose":"Check-in Process Definition",
"Status":0
},
{
"Category":0,
"DateOccurred":" \/Date(928149600000)\/",
"Description":"",
"ObjectID":"A9F16EC0FC424C8189917DB1E6E8FB5C",
"ObjectInfo":"SingleCompleteMobileView\/1.01",
"Performer":"DEMO3\\Administrator",
"Purpose":"Check-in Process Definition",
"Status":0
}]
AgilePoint BPMS v5.0 R2 and higher