Methods / Process Definition Methods |
REST
POST
Deletes the process definition and all of the process instances associated with the process definition. The process definition cannot be deleted if one or more process instances associated with the process definition is running or suspended. The function may take a long time to execute if there are many process instances associated with the process definition.
https://[domain]:[port]/AgilePointServer/Workflow/DeleteProcDef/[processTemplateID]
https://[domain]:[port]/AgilePointService/Workflow/DeleteProcDef/[processTemplateID]
Name | Description |
---|---|
processTemplateID |
|
$("#btnDeleteProcDef").click(function () { $.ajax({ url: "https://mydomain:9011/AgilePointServer/Workflow/ DeleteProcDef/C769BA234EFD421B8B95A525B972E511" }); });
public String DeleteProcDef(String processTemplateID) { String URI = "http://mydomain:9011/AgilePointServer/Workflow/DeleteProcDef/" + processTemplateID; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); JSONObject postData = new JSONObject(); return ops.POSTMethod(URI, postData.toString()); }
public string DeleteProcDef() { string URI = "http://mydomain:9011/AgilePointServer/Workflow/ DeleteProcDef/3B9A54192B6C4C4AA902BD46279C7FAF"; HTTPOperations ops = new HTTPOperations(domain, this.userName, password, appID, locale); return ops.POSTMethod(URI, ""); }
None.
The response body is empty.
AgilePoint BPMS v5.0 R2 and higher