REST API - cancelAdhocActivity

The table summarizes the REST API - cancelAdhocActivity.

Request

Format
DELETE <baseurl>/process/adhoc/cancel/<processid>/<activityID>
Path parameters processid: Unique ID for the process instance to cancel. Can be obtained from listProcessInstances, queryProcessInstances, and queryProcessInstancesAlt.

activityID: Can be obtained from listAdhocActivities, which lists all ad-hoc activities for the specified process instance. (Note that the activity ID is listed as "name" in the response from listAdhocActivities.)

Response

JSON Returns a JSON representation of the content in the cancelAdhocActivityResponse element.
XML Returns the content in the cancelAdhocActivityResponse element (from the ProcessManagement schema).

Example

Request
DELETE <baseurl>/process/adhoc/cancel/pvm:0a122/ManualAdhocActivitySimplyInspectclaims
Response
{
  "proc:status": {
    "-xmlns:proc": "http://www.tibco.com/bx/2009/management/processManagerType",
    "#text": "COMPLETED"
  }
}