| Methods / Methods for Activity Instances | |
REST
POST
Rolls back a manual activity instance to the token position EN – that is, the state where the activity is entered. All work items associated with the manual activity instance with the status of NEW, OVERDUE, or ASSIGNED are canceled.
https://[domain]:[port]/AgilePointServer/Workflow/RollbackActivityInst/[activityInstanceID]
https://[domain]:[port]/AgilePointService/Workflow/RollbackActivityInst/[activityInstanceID]
| Name | Description |
|---|---|
activityInstanceID |
|
$("#btnRollbackActivityInst").click(function () {
$.ajax({
url: "https://mydomain:9011/AgilePointServer/Workflow/
RollbackActivityInst/3E14D9BE837C47F2BA17A724508AC8CD",
});
});
public String RollbackActivityInst(String activityInstanceID) {
String URI = "http://mydomain:9011/AgilePointServer/Workflow/CancelActivityInst/"
+ activityInstanceID;
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
JSONObject postData = new JSONObject();
return ops.POSTMethod(URI, postData.toString());
}
public string RollbackActivityInst()
{
string URI="http://mydomain:9011/AgilePointServer/Workflow/
RollbackActivityInst/21445F95AB024985A221BAC6F94BAF26";
HTTPOperations ops = new HTTPOperations(domain, this.userName,
password, appID, locale);
return ops.POSTMethod(URI, "");
}
WFEvent object that provides the status of the transaction. Possible statuses are Success, Failed, and Sent.
{
"ActivityInstID": "0F6B47906A0C4B469AC9CB9A7F2FF831",
"AutoStart": true,
"CustomAttributes": null,
"Diagnostic": true,
"EndDate": “\/Date(928149600000+0000)\/”,
"Entries": 1,
"Error": null,
"EventID": "0F7FAC43DF6842D1BDAA74234EBD4832",
"EventName": "RollbackActivityInstance",
"HighPriority": true,
"ParamsXml": "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<WFEvent>
<param name=\"ProcInstID\"
value=\"00131C75A35046A89E32B64C4649E075\" \/>
<param name=\"ActivityInstID\"
value=\"0F6B47906A0C4B469AC9CB9A7F2FF831\" \/>
<param name=\"HighPriority\" value=\"True\" \/>
<\/WFEvent>",
"ParentProcInstID": "",
"ProcDefID": "",
"ProcInstID": "00131C75A35046A89E32B64C4649E075",
"ProcInstName": "",
"Sender": "demo3\\administrator",
"SentDate": "\/Date(1394145620490+0000)\/",
"SourceWorkItemID": "",
"Status": "Sent",
"UserID": "",
"WorkItemID": "",
"WorkObjectID": "",
"WorkObjectInfo": ""
}
AgilePoint BPMS v5.0 R2 and higher