| Methods / Methods for Automatic Work Items (Procedures) | |
REST
POST
Retrieves a list of automatic work items that match a specified query expression.
https://[domain]:[port]/AgilePointServer/Workflow/QueryProcedureList
https://[domain]:[port]/AgilePointService/Workflow/QueryProcedureList
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
expr |
|
ColumnName |
|
Operator |
|
WhereClause |
|
IsValue |
|
$("#btnQueryProcedureList").click(function () {
var JSONObject = {
ColumnName: "SYNCHRONOUS", Operator: "EQ", WhereClause: "No", IsValue: true
};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/QueryProcedureList",
data: JSON.stringify(JSONObject)
});
});
public String QueryProcedureList(String ColumnName, String Operator,
String WhereClause, boolean IsValue) {
String URI = "http://mydomain:9011/AgilePointServer/Workflow/QueryProcedureList";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
try {
postData.put("ColumnName", ColumnName);
postData.put("Operator", Operator);
postData.put("WhereClause", WhereClause);
postData.put("IsValue", IsValue);
return ops.POSTMethod(URI, postData.toString());
} catch (JSONException e1) {
e1.printStackTrace();
}
return "";
}
public string QueryProcedureList()
{
string URI = "http://mydomain:9011/AgilePointServer/Workflow/QueryProcedureList";
string jsonRequestData="{
\"ColumnName\":\"" + "SYNCHRONOUS" + "\",
\"Operator\":\"" +"EQ"+ "\",
\"WhereClause\":\"" +"No"+ "\",
\"IsValue\":\"" +"true"+ "\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, jsonRequestData);
}
An array of automatic work items.
[{
"ActivityInstID": "F002ECAF07764DE5B0ADE53D4FB7C2F4",
"ApplName": "MyApplication",
"CompletedDate": "\/Date(928149600000+0000)\/",
"CreatedDate": "\/Date(1390771702547+0000)\/",
"DueDate": "\/Date(1390771732547+0000)\/",
"DueHandled": false,
"Pending": false,
"ProcInstID": "0E05B456F489468D90414A7E9AF8CDF3",
"ProcedureInfo": "#AgilePart:Ascentn.AgilePart.Process,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=2973ddf2dfd2d294:Ascentn.Workflow.Extension.ProcessManagementAgilePart:Delay",
"Session": 32,
"Status": "Cancelled",
"Synchronous": false,
"WorkItemID": "0078B6ECE50A47B3A3907341DF8F8B5E"
}]
AgilePoint BPMS v5.0 R2 and higher