REST API - getCaseReport - Using Case Reference

The table summarizes the REST API - getCaseReport.

Request

Format
GET <baseurl>/audit/report/case/<caseReference>
Path Parameters caseReference. The reference to the case object. Whenever a case object is created, a unique case reference is also created. Providing the case reference, provides access to the case data object. You can obtain case references using findAllCases .
Query parameters
  • requireallattributes=string (optional, default=false). Whether all attributes should be returned. Can be obtained from getAllAttributes or getAttributes . The default is false.
  • requiredattribute=string (optional). Specific attributes that should be returned for each event found. Can be obtained from getAllAttributes or getAttributes .
  • sortorder=string (0-n, optional): What attribute or attributes the results should be sorted on, and in what direction the sort should run. Specify this in the following format:

    attribute 1:ASCENDING|DESCENDING;attribute 2:ASCENDING|DESCENDING; … attribute n:ASCENDING|DESCENDING

  • details. =Not supported.
  • gettotalcount=string (optional, default=true). Whether to include a count of the total number of events in the list. The count is returned in the totalItems value in the response.You should set getTotalCount to false unless you specifically need the total figure, because setting it to true is expensive in terms of database access time. Note that:
    • If you pass false in this attribute, and there is at least one item in the list, the totalItems value returned in the response is -1. However, if you pass false and there are no work items in the list, the totalItems value in the response is 0 (zero).
    • If you pass true in this attribute but numberOfItems is set to zero, the totalItems value in the response is 0 regardless of how many items are actually in the list. The total count of items is only available when you are fetching one or more items.
  • numberofitems=integer (optional, default=-1). The maximum number of events to return. Specifying -1 returns all events for the process instance.
  • populateattributenames=string (optional). Specify that attribute names be returned in the list of events.
  • startposition=integer (optional, default=-1). The position in the list from which to start the page of results. The list is zero-based. To start at the first item, specify 0.
  • advancedoptions. For internal use only and should not be used.
  • fetchcomments=boolean (optional). Returns all comments for the case reference.

Response

JSON Returns a JSON representation of the content of the getCaseAuditResponse element.
XML Returns the content of the getCaseAuditResponse element (from the EventCollectorReportService schema).

Example

Request
GET <baseurl>/audit/report/case/BDS-2-com.example.gddemo.Car-4-0
Response
{
   "xml-fragment":
   {
       "endPosition": 1,
       "startPosition": 0,
       "totalItems": 1,
       "case":
       {
           "caseReference":
           {
               "caseReference": "BDS-2-com.example.gddemo.Car-4-0"
           }
       },
       "entry":
       {
           "creationTime": "2014-02-11T08:47:44.357Z",
           "componentId": "BDS",
           "messageId": "BDS_GLOBAL_DATA_CREATE_CASE",
           "severity": "AUDIT",
           "message": "BDS Create Case enumeration",
           "priority": "MEDIUM",
           "correlationId": "d7f98e7a-973b-4da2-ac45-d60040cbae78",
           "contextId": "d7f98e7a-973b-4da2-ac45-d60040cbae78",
           "messageCategory": "GLOBAL_DATA",
           "principalId": "tibco-admin",
           "principalName": "tibco-admin",
           "managedObjectId": "BDS-2-com.example.gddemo.Car-4-0",
           "managedObjectName": "com.example.gddemo.Car",
           "managedObjectType": "BDS",
           "managedObjectVersion": 0,
           "additionalAttributes":
           {
               "attribute":
               [
                   {
                       "@type": "base:StringEntryAttribute",
                       "attributeId": 28,
                       "attributeName": "hostAddress",
                       "type": "STRING",
                       "value": "10.100.87.176"
                   },
                   {
                       "@type": "base:StringEntryAttribute",
                       "attributeId": 98,
                       "attributeName": "modelVersion",
                       "type": "STRING",
                       "value": "2.0.0"
                   },
               ]
           }
       }
   }
}