List Process Documents
get
/process/api/v1/audit/instances/{instanceId}/documents
Retrieves the documents that were involved in a process instance.
Request
Path Parameters
-
instanceId(required): string
The id that identifies the process.
Query Parameters
-
limit: integer
The number of items to return. If parameter is omitted default value 25 is set. If limit <=0 or limit> 50 then upto 50 records are returned.=0>Default Value:
25
-
offset: integer
0 based index. The number of items to skip before starting to collect the result set. to return.
-
orderBy: string
This parameter specifies the order by clause. The value must follow the format of fieldName[:(asc/desc)][,fieldName[:(asc/desc)]]*. e.g. documentId:asc. Multiple ordering is not supported. The supported attributes include: documentId, documentName and createdDate
-
totalResults: boolean
If true return total count of records for given query with filtersDefault Value:
false
Header Parameters
-
Accept-Language:
Accept-Language header in IETF BCP 47
-
oci-original-url:
Actual endpoint which customer requested
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : AuditInstanceDocuments
Match All
Show Source
-
object
allOf
ProcessInstance
-
object
ListPagination
A common structure for helping a client with pagination
-
object
AuditInstanceDocuments-allOf[2]
Nested Schema : BaseInstance-allOf[1]
Type:
Show Source
object
-
applicationDescription: string
The description of the application that this process instance belongs to.
-
applicationName: string
The name of the application that this process instance belongs to
-
applicationTitle: string
The title of the application that this process instance belongs to
-
availableActions: array
availableActions
-
businessKey: string
The business key of the process instance
-
createdBy:
UserOrAppClient
-
createTime: string
The time the instance was created. Has the format yyyy-MM-dd'T'HH:mm:ss
-
description: string
Instance Description
-
durationInMillis: integer
(int64)
The time the instance took to finish in milliseconds.
-
endTime: string
The time the instance ended. Has the format yyyy-MM-dd'T'HH:mm:ss
-
id: string
The ID of the process instance.
-
processDefinitionId: string
The ID of the process definition that this process instance belongs to.
-
processDefinitionKey: string
The key of the process definition that this process instance belongs to.
-
processDefinitionName: string
The name of the process definition that this process instance belongs to.
-
processDefinitionVersion: integer
The version of the process definition that this process instance belongs to.
-
processName: string
The name of the process this process instance belongs to.
-
startActivityId: string
The ID of the initial activity that was executed. For example, a start event.
-
state: string
Allowed Values:
[ "ACTIVE", "COMPLETED", "TERMINATED", "SUSPENDED", "FAULTED", "CLOSED" ]
State of the process instance. This is a union of all possible states of a Dynamic process and a Structured process. States specific to a Dynamic process are ACTIVE, CLOSED, COMPLETED and TERMINATED. States specific to a Structured process are ACTIVE, COMPLETED, SUSPENDED, FAULTED, TERMINATED -
title: string
Title of the instance
-
updateTime: string
The time the instance was updated. Has the format yyyy-MM-dd'T'HH:mm:ss
Nested Schema : ProcessInstance-allOf[1]
Type:
Show Source
object
-
applicationDescription: string
The description of the application that this process instance belongs to.
-
applicationName: string
The name of the application that this process instance belongs to.
-
applicationTitle: string
The title of the application that this process instance belongs to.
-
availableActions: array
availableActions
-
availablePermissions: array
availablePermissions
-
businessKey: string
The business key of the process instance.
-
caseInstanceId: string
The ID of the parent case instance.
-
closeTime: string
The time the instance was closed. Has the format yyyy-MM-dd'T'HH:mm:ss.SSSZ, Returns date in UTC.
-
createTime: string
The time the instance was created. Has the format yyyy-MM-dd'T'HH:mm:ss.
-
createUserId: string
The ID of the user who created the process instance.
-
description: string
Instance Description
-
durationInMillis: integer
(int64)
The time the instance took to finish (in milliseconds).
-
endTime: string
The time the instance ended. Has the format yyyy-MM-dd'T'HH:mm:ss.
-
id: string
The ID of the process instance.
-
parentProcessInstanceId: string
The ID of the parent process instance, if it exists.
-
processDefinitionId: string
The ID of the process definition that this process instance belongs to.
-
processDefinitionKey: string
The key of the process definition that this process instance belongs to.
-
processDefinitionName: string
The name of the process definition that this process instance belongs to.
-
processDefinitionVersion: integer
The version of the process definition that this process instance belongs to.
-
processName: string
The name of the process this process instance belongs to.
-
startActivityId: string
The ID of the initial activity that was executed (e.g., a start event).
-
startUserId: string
The ID of the user who started the process instance.
-
superCaseInstanceId: string
The ID of the parent case instance.
-
superProcessInstanceId: string
The ID of the parent process instance.
-
title: string
Instance Title
-
userId: string
The ID of the user who is responsible for the process instance.
-
version: string
The version of the application that this process instance belongs to.
Nested Schema : ListPagination
Type:
object
A common structure for helping a client with pagination
Show Source
-
count: integer
The count of elements that are returned in the current this will be equal to or less than the "limit" parameter
-
limit: integer
The maximum number of elements to be returned. This will correspond to the "limit" query parameter
-
offset: integer
The index number of the first element for the list. This will correspond to the "offset" query parameter value
-
totalResults: integer
(int64)
The total number of elements in the list for the applied filters - not including the "limit" parameter
Nested Schema : Link
Type:
object
Defines Link
Show Source
-
code: integer
Minimum Value:
100
Maximum Value:600
-
href(required): string
-
hreflang: string
-
length: integer
(int32)
-
mediaType: string
-
message: string
-
rel(required): string
-
title: string
-
type: string
Nested Schema : UserOrAppClient
Match All
Show Source
-
object
IdentityCommon
-
object
Discriminator: type
Discriminator:
{ "propertyName":"type" }
Nested Schema : Discriminator: type
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "APPCLIENT" ]
Nested Schema : AuditDocument-allOf[1]
Type:
Show Source
object
-
createdBy:
AuditUser
-
createdDate: string
(date)
The date and time at which the document was created i.e. uploaded with the format yyyy-MM-dd'T'HH:mm:ss.
-
documentId: string
The unique identifier for the document or attachment.
-
dpInstanceId: string
The instance ID for the related dynamic process instance. This is mutually exclusive to the processInstanceId
-
fileName: string
The name of the file that was uploaded as a document or attachment.
-
href: string
The URL pointing pointing to the document or attachment.
-
lastUpdatedBy:
AuditUser
-
lastUpdatedDate: string
(date)
The date and time at which the document was lat updated with the format yyyy-MM-dd'T'HH:mm:ss.
-
processInstanceId: string
The instance ID for the related BPMN process instance. This is mutually exclusive to the dpInstanceId
Nested Schema : Identity-allOf[1]
Type:
Show Source
object
-
type: string
Allowed Values:
[ "USER", "GROUP", "ROLE" ]
Nested Schema : AuditUser-allOf[1]
Type:
object
201 Response
There are no documents for the BPMN Process ID
400 Response
Bad Request. There is an error in the URL
401 Response
Unauthorized
404 Response
The process instance does not exist
429 Response
Too Many Requests
500 Response
internal server error
503 Response
Too Many Exceptions or Too Slow Requests
Examples
Example: Get the list of documents for a process instance
The following example shows how to get the list of documents involved in a process instance by submitting a GET request on the REST resource using cURL. For more information about cURL, see cURL Access. For more information about endpoint URL structure, see Send Requests.
Retrieve the list of documents for the process instance 3fa85f64-5717-4562-b3fc-2c963f66afa6 in ascending order and limit the results to 25 documents.
curl -X 'GET' \
'https://<OIC URL>/process/api/v1/audit/instances/3fa85f64-5717-4562-b3fc-2c963f66afa6/documents?orderBy=asc&limit=25&totalResults=false'
\ -H 'accept: application/json' \ -H 'oci-original-url:
www.oracle.com'
Example: Format of 200 Operation Successful response
{
"links": [
{
"href": "string",
"hreflang": "string",
"length": 0,
"rel": "string",
"title": "string",
"type": "string",
"mediaType": "string",
"message": "string",
"code": 600
}
],
"id": "string",
"processName": "string",
"title": "string",
"description": "string",
"processDefinitionName": "string",
"processDefinitionKey": "string",
"processDefinitionVersion": 0,
"processDefinitionId": "string",
"businessKey": "string",
"applicationName": "string",
"applicationTitle": "string",
"applicationDescription": "string",
"createTime": "string",
"updateTime": "string",
"endTime": "string",
"durationInMillis": 0,
"startActivityId": "string",
"state": "ACTIVE",
"availableActions": [
"string"
],
"createdBy": {
"id": "string",
"name": "string",
"displayName": "string",
"type": "USER"
},
"closeTime": "string",
"userId": "string",
"createUserId": "string",
"parentProcessInstanceId": "string",
"superProcessInstanceId": "string",
"superCaseInstanceId": "string",
"caseInstanceId": "string",
"version": "string",
"startUserId": "string",
"availablePermissions": [
"string"
],
"totalResults": 0,
"offset": 0,
"limit": 0,
"count": 0,
"items": [
{
"links": [
{
"href": "string",
"hreflang": "string",
"length": 0,
"rel": "string",
"title": "string",
"type": "string",
"mediaType": "string",
"message": "string",
"code": 600
}
],
"documentId": "string",
"processInstanceId": "string",
"dpInstanceId": "string",
"fileName": "string",
"href": "string",
"createdBy": {
"id": "string",
"name": "string",
"displayName": "string",
"type": "USER"
},
"createdDate": "2024-08-12",
"lastUpdatedBy": {
"id": "string",
"name": "string",
"displayName": "string",
"type": "USER"
},
"lastUpdatedDate": "2024-08-12"
}
]
}