Quick tips on Case Management audit events

Oracle Adaptive Case Management has rich APIs to retrieve the events that transpired within a case instance. Here is an example of using case events and some important tips. This information applies to Oracle BPM 11g and 12c.

Create a java class with a main method to retrieve the case audit events

Let take a look at the audit event query:

Some key tips:

1. Passing a null value for TEventType will retrieve all the case events just like the default view on the case workspace. Passing a specific value retrieves only those specific event types – see the API for more details.

2. Make sure the pageNum and pageSize are in the correct position when calling the method – it will not retrieve any values if they are wrong.

3. Using additionalCaseEventInfo.add(ICaseConstants.CaseEventInfo.taskInfo); will work only for Case activities that are Human Tasks (does not work on BPMN or custom case activities). This retrieves an oracle.bpm.casemgmt.task.model.TaskInfo object that will retrieve all the details on the task including task assignees (see oracle.bpm.casemgmt.task.model.Task API for more details)

4. The search String for case events only searches the audit event case object display names and updated by display names with an OR condition. You can use enclose your search string with wildcard %.

case audit events logging in EM

case audit events logging in EM

5. To debug the case event search you can navigate to Enterprise manager and enable the logger oracle.bpm.casemgmt.event to TRACE32:FINEST

Vikram