List Process Instance Jobs
get
/process/api/v1/process-instances/{id}/jobs
Retrieves the list of process instance jobs for a given instance ID.
Note:
You can use this API only on structured processes.
Request
Path Parameters
-
id(required): string
Process Instance ID
Query Parameters
-
limit(required): integer
Pagination of results. Specifies the maximum number of results to return. Will return less results if there are no more results left.Default Value:
25
-
offset(required): integer
Pagination of results. Specifies the index of the first result to return.Default Value:
0
-
sortBy(required): string
Sort the results by a given criterion. Valid values are JOBID, RETRIES, DUEDATE. Must be used in conjunction with the sortOrder parameter.Allowed Values:
[ "JOBID", "RETRIES", "DUEDATE" ]
-
sortOrder(required): string
Sort the results in a given order. Values may be ASC for ascending order or DESC for descending order. Must be used in conjunction with the sortBy parameter.Allowed Values:
[ "ASC", "DESC" ]
-
state(required): string
Job states: * `ALL` - All jobs for the process instance * `SCHEDULED` - Jobs with due dates in the future. Can include FAULTED jobs too which are scheduled for retry. * `READY` - Jobs with due dates in the past which might be executing currently or are stuck. Can include FAULTED jobs too which are executing or stuck. * `FAULTED` - Jobs which have faulted with exception. * `EXHAUSTED` - Jobs which have faulted and exhausted all retries.Default Value:
ALL
Allowed Values:[ "ALL", "SCHEDULED", "READY", "FAULTED", "EXHAUSTED" ]
-
totalResults(required): boolean
Specifies if total number of results need to be returnedDefault Value:
false
Header Parameters
-
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
Nested Schema : ProcessInstanceJobs-allOf[1]
Type:
Show Source
object
-
count: integer
Total number of records in the current response.
-
instanceId: string
Instance Id
-
items: array
items
-
limit: integer
Actual page size used by the server.
-
offset: integer
The actual index from which the singular resources are returned.
-
totalResults: integer
(int64)
Total count with the applied filter criteria.
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 : ProcessInstanceJobItem-allOf[1]
Type:
Show Source
object
-
activityName: string
The display name of the activity for whuch the job is created.
-
createdTime: string
(date)
The date and time of job creation.Has the format yyyy-MM-dd'T'HH:mm:ss.
-
dueDate: string
(date)
The due date of the job.Has the format yyyy-MM-dd'T'HH:mm:ss.
-
exceptionMessage: string
The message of the exception that occurred, the last time the job was executed. Is null when no exception occurred.
-
exceptionTrace: string
The stack trace of the exception corresponding to an EXHAUSTED job.
-
executionId: string
The ID of the execution that created this job instance.
-
id: string
The ID of the job instance.
-
isExecuting: boolean
Flag to indicate whether the job is currently executing.
-
isRetryAllowed: boolean
Is job retry allowed for the user.
-
processDefinitionId: string
The ID of the process definition that this job instance belongs to.
-
processDefinitionKey: string
The key of the process definition that this job instance belongs to.
-
processInstanceId: string
The ID of the process instance that this job instance belongs to.
-
retries: integer
The number of retries left for the job
-
state: string
Allowed Values:
[ "SCHEDULED", "READY", "FAULTED", "EXHAUSTED" ]
State of the job- SCHEDULED,READY,FAULTED,EXHAUSTED.
401 Response
Unauthorized
404 Response
Process instance id does not exist.
429 Response
Too many requests
500 Response
Internal server error
503 Response
Too many exceptions or too slow requests