List User Task History for Process Instance
get
                    /process/api/v1/audit/instances/{instanceId}/tasks/{taskId}
Retrieves the history for a particular user task in a process instance.
                
                Request
Path Parameters
                - 
                    instanceId(required):  string
                    
                    The id that identifies the process.
 - 
                    taskId(required):  string
                    
                    The id that identifies the user task.
 
Header Parameters
                    - 
                            Accept-Language: string 
                            
                            Accept-Language header in IETF BCP 47
 - 
                            oci-original-url: string 
                            
                            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 : AuditTaskDetail
    
    	
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Match All
    
        
    
        
    
        
    
        
    
    Show Source
    - 
                
                object 
                
                
             CommonModel
                
            
 - 
                
                object 
                
                
             AuditTaskWithoutCM
                
            
 - 
                
                object 
                
                
             ListPagination
                
            A common structure for helping a client with pagination
 - 
                
                object 
                
                
             AuditTaskDetail-allOf[3]
                
            
 
Nested Schema : AuditTaskWithoutCM
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    activityInstanceId: string
                    
                    
                     
                    
                
                
                The unique identifier for the User Task activity that is associated to the current task.
 - 
                
                    
                    applicationName: string
                    
                    
                     
                    
                
                
                The name of the application to which the process and task belong.
 - 
                
                    
                    assignedDate: string
                    
                    
                     (date) 
                    
                
                
                Assigned date in the format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    assignee: 
                    
                    
                
                
                    AuditUser
                
                
                
 - 
                
                    
                    candidateGroups: array
                    
                    
                
                
                    candidateGroups
                
                
                
 - 
                
                    
                    candidateUsers: array
                    
                    
                
                
                    candidateUsers
                
                
                
 - 
                
                    
                    completedDate: string
                    
                    
                     (date) 
                    
                
                
                Time when the task was deleted or completed in format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    createdBy: 
                    
                    
                
                
                    UserOrAppClient
                
                
                
 - 
                
                    
                    createdDate: string
                    
                    
                     (date) 
                    
                
                
                The time the task was created in the format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    description: string
                    
                    
                     
                    
                
                
                Some text to describe the task.
 - 
                
                    
                    dpDefinitionId: string
                    
                    
                     
                    
                
                
                The Dynamic Process reference.
 - 
                
                    
                    dpExecutionId: string
                    
                    
                     
                    
                
                
                The Dynamic Process execution reference.
 - 
                
                    
                    dpInstanceId: string
                    
                    
                     
                    
                
                
                The unique identifier for the Dynamic Process in whcih the User Task activity has been invoked.
 - 
                
                    
                    dpName: string
                    
                    
                     
                    
                
                
                The name of a Dynamic Process to which the task belongs.
 - 
                
                    
                    dueDate: string
                    
                    
                     (date) 
                    
                
                
                Due date in the format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    duration: number
                    
                    
                     (int64) 
                    
                
                
                The duration of the User Task activity. This will be the difference between the endTime and the startTime.
 - 
                
                    
                    endTime: string
                    
                    
                     (date) 
                    
                
                
                The date and time stamp as to when the User Task activity execution ended.
 - 
                
                    
                    expirationDate: string
                    
                    
                     (date) 
                    
                
                
                expiration Date in the format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    externalFormUrl: string
                    
                    
                     
                    
                
                
                The reference to the external form associated with the task.
 - 
                
                    
                    formURL: string
                    
                    
                     
                    
                
                
                The reference to the form associated with the task.
 - 
                
                    
                    fromUser: string
                    
                    
                     
                    
                
                
                When a task is reassigned from one user to the other, the source or from user is recorded.
 - 
                
                    
                    isAdhoc: boolean
                    
                    
                     
                    
                
                
                Specifies if it is an Adhoc Task or not.
 - 
                
                    
                    lastAction: object
                    
                    
                
                
                    AuditTaskEvent
                
                
                
 - 
                
                    
                    lastUpdatedDate: string
                    
                    
                     (date) 
                    
                
                
                Last updated date in the format yyyy-MM-dd'T'HH:mm:ss.
 - 
                
                    
                    outcome: string
                    
                    
                     
                    
                
                
                The result of a user action will be recorded as an outcome.
 - 
                
                    
                    parentTaskId: string
                    
                    
                     
                    
                
                
                Where a User Task is related to other tasks, the reference to the owning task is recorded as the parentTaskId.
 - 
                
                    
                    priority: integer
                    
                    
                     (int32) 
                    
                
                
                Allowed Values:
[ 1, 2, 3 ]The priority for the task. This is provided as a number between 1 and 3, where 1 is the highest priority. - 
                
                    
                    processDefinitionId: string
                    
                    
                     
                    
                
                
                The BPMN process definition reference.
 - 
                
                    
                    processExecutionId: string
                    
                    
                     
                    
                
                
                The BPMN execution reference.
 - 
                
                    
                    processInstanceId: string
                    
                    
                     
                    
                
                
                The unique identifier for the BPMN process in which the User Task activity has been invoked.
 - 
                
                    
                    processName: string
                    
                    
                     
                    
                
                
                The name of the BPMN process to which the task belongs.
 - 
                
                    
                    removalTime: string
                    
                    
                     (date) 
                    
                
                
                The time the historic task instance will be removed.
 - 
                
                    
                    rootProcessId: string
                    
                    
                     
                    
                
                
                The unique process instance ID that represents a parent or root identifier for one or more child or called processes.
 - 
                
                    
                    startTime: string
                    
                    
                     (date) 
                    
                
                
                The date and time stamp as to when the User Task activity was invoked.
 - 
                
                    
                    state: string
                    
                    
                     
                    
                
                
                Allowed Values:
[ "ASSIGNED", "UNASSIGNED", "WITHDRAWN", "COMPLETED", "DELEGATED", "FAULTED" ]This defines the current state of the task. It can only be one of five values. - 
                
                    
                    taskId: string
                    
                    
                     
                    
                
                
                The unique identifier for a task.
 - 
                
                    
                    title: string
                    
                    
                     
                    
                
                
                The title that describes the task.
 
Nested Schema : ListPagination
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectA 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: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectDefines Link
    
    
    
    
        Show Source
        - 
                
                    
                    code: integer
                    
                    
                     
                    
                
                
                Minimum Value:
100Maximum 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 : AuditTaskEvent
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    action: string
                    
                    
                     
                    
                
                
                The action performed by the user.
 - 
                
                    
                    actionType: string
                    
                    
                     
                    
                
                
                Allowed Values:
[ "SYSTEM_ACTION", "CUSTOM_ACTION" ]The type of action where the action can come in different forms such as the response to a task. This can be a System action or a Custom action. - 
                
                    
                    candidateGroups: array
                    
                    
                
                
                    candidateGroups
                
                
                
 - 
                
                    
                    candidateUsers: array
                    
                    
                
                
                    candidateUsers
                
                
                
 - 
                
                    
                    comment: string
                    
                    
                     
                    
                
                
                Reference ID to the comment.
 - 
                
                    
                    commentText: string
                    
                    
                     
                    
                
                
                Comment message.
 - 
                
                    
                    fromUser: string
                    
                    
                     
                    
                
                
                The source user when an action involves passing responsiblity from one user to another
 - 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                Rendered text based on the user, action and comment - for display purposes
 - 
                
                    
                    outcome: string
                    
                    
                     
                    
                
                
                The outcome of the task event if the task
 - 
                
                    
                    performer: string
                    
                    
                     
                    
                
                
                The user or group responsible for the action
 - 
                
                    
                    properties: array
                    
                    
                
                
                    properties
                
                
                
 - 
                
                    
                    timestamp: string
                    
                    
                     (date) 
                    
                
                
                The date and time at which the action occurred
 - 
                
                    
                    toUser: string
                    
                    
                     
                    
                
                
                The target user when an action involves passing responsibility from one user to another
 
Nested Schema : Identity-allOf[1]
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    type: string
                    
                    
                     
                    
                
                
                Allowed Values:
[ "USER", "GROUP", "ROLE" ] 
Nested Schema : AuditUser-allOf[1]
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
objectNested Schema : AuditGroup-allOf[1]
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
objectNested Schema : Discriminator: type
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
          
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    type: string
                    
                    
                     
                    
                
                
                Allowed Values:
[ "USER", "APPCLIENT" ] 
Nested Schema : AuditEventProperty
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    name: string
                    
                    
                     
                    
                
                
                The name of the property associated with the user operation
 - 
                
                    
                    value: object
                    
                    
                
                
                    value
                
                
                The value of the property
 
Nested Schema : ChildTasks
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    childTasksDetails: array
                    
                    
                
                
                    childTasksDetails
                
                
                
 - 
                
                    
                    totalCount: integer
                    
                    
                     (int32) 
                    
                
                
                The number of total child adhoc tasks
 
Nested Schema : AuditTaskAction
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    actionId: string
                    
                    
                     
                    
                
                
                The unique identifier for the action.
 - 
                
                    
                    title: string
                    
                    
                     
                    
                
                
                The title of the action.
 
Nested Schema : ChildTasksDetails
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    links: object
                    
                    
                
                
                    AuditChildAdhocTaskLinks
                
                
                Contains links to the audit of adhoc child task, and to the child adhoc task itself
 - 
                
                    
                    title: string
                    
                    
                     
                    
                
                
                Title of the adhoc task.
 
Nested Schema : AuditChildAdhocTaskLinks
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectContains links to the audit of adhoc child task, and to the child adhoc task itself
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
    
Examples
                                
                                
                            
                            
                            
                        201 Response
There are no activities for the process instance id
                            
                            
                            
                            
                        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: Retrieve the history of user task 6789vghjk in a process instance 3456dasds4567d678
The following example shows how to retrieve the history of user task 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.In addition to task ID and process nstance ID, you have to provide the accepted language and the OCI original URL details.
curl -X 'GET' \
      'https://<OIC URL>/process/api/v1/audit/instances/3456dasds4567d678/tasks/6789vghjk' \
      -H 'accept: application/json' \   -H 'Accept-Language: English' \   -H 'oci-original-url:
      www.oracle.com'