# Class: CancelAdhocActivityRequest

## tibco.objectapi.service.request.CancelAdhocActivityRequest

#### new CancelAdhocActivityRequest(processId, activityId)

Object CancelAdhocActivityRequest Usage: `RestApiService.getProcessManagementService().cancelAdhocActivity(request, callback);`

##### Parameters:

Name | Type | Description
--- | --- | ---
`processId` | string | ID for the process instance to cancel. Can be obtained from listProcessInstances, queryProcessInstances, and queryProcessInstancesAlt.
`activityId` | string | The ID of the ad-hoc activity to cancel. 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.)

Since:
  - 4.0.0