Information Technology Reference
In-Depth Information
AuditLogService service = new JPAAuditLogService(emf);
Once we have a version of the AuditLogService class (and some process executions
to feed the history logs), we can start checking some of its information directly from the
already provided methods:
List<ProcessInstanceLog> findProcessInstances();
List<ProcessInstanceLog> findProcessInstances(String
procId);
List<ProcessInstanceLog> findActiveProcessInstances(
String procId);
List<NodeInstanceLog> findNodeInstances(long
processInstanceId);
List<VariableInstanceLog> findVariableInstances(
long processInstanceId, String variableId);
...
You can also extend these methods quite easily, since they're only JPA queries executed
against the existing entities. You can see an example of using the audit service in the
testHistoryLogs() method of the JPAPersistentProcessTest class.
Search WWH ::




Custom Search