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 UpdateProcessInstance(String processInstanceID, String[] Name, String[] Value) { String URI = "http://mydomain:9011/AgilePointServer/Workflow/UpdateProcInst/" + processInstanceID; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); JSONObject postMainData = new JSONObject(); JSONArray postArray = new JSONArray(); try { 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()); } catch (JSONException e1) { e1.printStackTrace(); } return ""; }
None.
The response body is empty.
AgilePoint BPMS v5.0 R2 and higher