| Methods / Methods for Process Instances | |
REST
POST
Updates attributes of a workflow process instance. The attributes that can be updated are listed in the attribute table.
https://[domain]:[port]/AgilePointServer/Workflow/UpdateProcInst/[processInstanceID]
https://[domain]:[port]/AgilePointService/Workflow/UpdateProcInst/[processInstanceID]
| Name | Description |
|---|---|
processInstanceID |
|
| Name | Description |
|---|---|
attributes |
|
| Name | Description |
|---|---|
| ProcInstName | The name of the process instance. |
| DueDate | The date that the process instance is expected to be complete |
| workObjectID | The ID of the work object. |
$("#btnUpdateProcInst").click(function () {
var JSONObject = { attributes: [{ Name: "PROCINSTNAME", Value: "test123" }]};
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/
UpdateProcInst/F05A692BBC514477BECA6586EFF90101",
data: JSON.stringify(JSONObject)
});
});
public String UpdateProcInst() {
String URI = "https://mydomain:9011/AgilePointServer/Workflow/
UpdateProcInst/F05A692BBC514477BECA6586EFF90101";
HTTPOperations ops = new HTTPOperations(domain, userName,
password, appID, locale);
JSONObject postMainData = new JSONObject();
JSONArray postArray = new JSONArray();
String[] Name = { "PROC_INST_NAME" };
String[] Value = { "Process Map Approval" };
for (int i = 0; i < Name.length; i++) {
JSONObject nameValuePair = new JSONObject();
nameValuePair.put("Name", Name[i]);
nameValuePair.put("Value", Value[i]);
postArray.put(nameValuePair);
}
postMainData.put("attributes", postArray);
return ops.POSTMethod(URI, postMainData.toString());
return "";
}
public string UpdateProcInst()
{
string jsonRequestData = "{
\"attributes\":[{
\"Name\":\"PROCINSTNAME\",
\"Value\":\"test123\"}]}";
string URI = "https://mydomain:9011//AgilePointServer/Workflow/
UpdateProcInst/F05A692BBC514477BECA6586EFF90101";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, jsonRequestData);
}
None.
The response body is empty.
AgilePoint BPMS v5.0 R2 and higher