| Methods / Process Definition Methods | |
REST
POST
Adds a new process definition to the AgilePoint Server.
https://[domain]:[port]/AgilePointServer/Workflow/CreateProcDef
https://[domain]:[port]/AgilePointService/Workflow/CreateProcDef
| Name | Description |
|---|---|
| None | Not Applicable |
| Name | Description |
|---|---|
xml |
|
$("#btnCreateProcDef").click(function () {
var JSONData = { xml: '<process template XML string>' };
$.ajax({
url: 'https://mydomain:9011/AgilePointServer/Workflow/CreateProcDef',
data: JSON.stringify(JSONData)
});
});
public String CreateProcDef() {
String URI = "https://mydomain:9011/AgilePointServer/Workflow/CreateProcDef";
HTTPOperations ops = new HTTPOperations(domain, userName,
password, appID, locale);
JSONObject postData = new JSONObject();
postData.put("xml", "<process template XML string>");
return ops.POSTMethod(URI, postData.toString());
return "";
}
public string CreateProcDef()
{
string URL= "https://mydomain:9011/AgilePointServer/Workflow/CreateProcDef";
string jsonRequestData = "{
\"xml\": \"" + '<process template XML string>' + "\"}";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URL, jsonRequestData);
}
Unique ID of the process definition, which the AgilePoint system generates.
"String content"
AgilePoint BPMS v5.0 R2 and higher