REST API - Comment - Process Instance Id - GET
This table summarizes the REST API - comment - process instance Id - GET.
Request
| Format |  
					 GET <baseurl>/audit/comment/proc_inst/<reference>  | 
 
				
| Path Parameters | reference: identify the instance ID whose comments you want to retrieve. Can be obtained from listProcessInstances, queryProcessInstances or queryProcessInstancesAlt. | 
| Query Parameters |  
					 
  | 
 
				
Response
| JSON | Returns a JSON representation of the content of the getCommentAuditResponse element. | 
| XML | Returns the content of the getCommentAuditResponse element (from the EventCollectorReportService schema). | 
Example
| Request |  
					 GET <baseurl>/audit/comment/proc_inst/pvm:0a123  | 
 
				
| Response |  
					 {
    "xml-fragment": {
        "endPosition": 1,
        "startPosition": 0,
        "totalItems": 1,
        "reference": {
            "processInstanceRef": {
                "instanceId": "pvm:0a123"
            }
        },
        "comment": {
            "id": 1684,
            "creationTime": "2016-03-21T11:50:27.137Z",
            "componentId": "EC",
            "messageId": "EC_COMMENT_PI",
            "severity": "AUDIT",
            "message": "ProcessInstance Comment",
            "priority": "MEDIUM",
            "correlationId": "e25100b7-b44c-4fd7-862a-2725197724bf",
            "contextId": "e25100b7-b44c-4fd7-862a-2725197724bf",
            "messageCategory": "PROCESS_INSTANCE",
            "principalId": "tibco-admin",
            "principalName": "tibco-admin",
            "managedObjectId": "pvm:0a123",
            "managedObjectType": "AUDIT_COMMENT",
            "managedObjectVersion": -1,
            "extendedMessage": "This is a claim.",
            "children": {
                "comment": {
                    "id": 1685,
                    "creationTime": "2016-03-21T11:52:16.783Z",
                    "componentId": "EC",
                    "messageId": "EC_COMMENT_PI",
                    "severity": "AUDIT",
                    "message": "ProcessInstance Comment",
                    "priority": "MEDIUM",
                    "correlationId": "a1ae20a2-ffe3-427b-9a83-f6e3fd2556eb",
                    "contextId": "a1ae20a2-ffe3-427b-9a83-f6e3fd2556eb",
                    "messageCategory": "PROCESS_INSTANCE",
                    "principalId": "tibco-admin",
                    "principalName": "tibco-admin",
                    "managedObjectId": "pvm:0a123",
                    "managedObjectType": "AUDIT_COMMENT",
                    "managedObjectVersion": 1684,
                    "extendedMessage": "This is also a claim.",
                    "children": {
                        "comment": {
                            "id": 1686,
                            "creationTime": "2016-03-21T12:05:08.923Z",
                            "componentId": "EC",
                            "messageId": "EC_COMMENT_PI",
                            "severity": "AUDIT",
                            "message": "ProcessInstance Comment",
                            "priority": "MEDIUM",
                            "correlationId": "15e15bd3-e67b-494a-88e0-ea8f29ee3b9a",
                            "contextId": "15e15bd3-e67b-494a-88e0-ea8f29ee3b9a",
                            "messageCategory": "PROCESS_INSTANCE",
                            "principalId": "tibco-admin",
                            "principalName": "tibco-admin",
                            "managedObjectId": "pvm:0a123",
                            "managedObjectType": "AUDIT_COMMENT",
                            "managedObjectVersion": 1685,
                            "extendedMessage": "This is also a claim too."
                        }
                    }
                }
            }
        }
    }
}
 
				   | 
 
				
Copyright © Cloud Software Group, Inc. All rights reserved.
