Search in sources :

Example 6 with HistoricJobLogEventEntity

use of org.camunda.bpm.engine.impl.persistence.entity.HistoricJobLogEventEntity in project camunda-bpm-platform by camunda.

the class BulkHistoryDeleteTest method findExceptionByteArrayIds.

private List<String> findExceptionByteArrayIds() {
    List<String> exceptionByteArrayIds = new ArrayList<String>();
    List<HistoricJobLog> historicJobLogs = historyService.createHistoricJobLogQuery().list();
    for (HistoricJobLog historicJobLog : historicJobLogs) {
        HistoricJobLogEventEntity historicJobLogEventEntity = (HistoricJobLogEventEntity) historicJobLog;
        if (historicJobLogEventEntity.getExceptionByteArrayId() != null) {
            exceptionByteArrayIds.add(historicJobLogEventEntity.getExceptionByteArrayId());
        }
    }
    return exceptionByteArrayIds;
}
Also used : HistoricJobLog(org.camunda.bpm.engine.history.HistoricJobLog) ArrayList(java.util.ArrayList) HistoricJobLogEventEntity(org.camunda.bpm.engine.impl.persistence.entity.HistoricJobLogEventEntity)

Aggregations

HistoricJobLogEventEntity (org.camunda.bpm.engine.impl.persistence.entity.HistoricJobLogEventEntity)6 ArrayList (java.util.ArrayList)2 HistoricJobLog (org.camunda.bpm.engine.history.HistoricJobLog)2 ByteArrayEntity (org.camunda.bpm.engine.impl.persistence.entity.ByteArrayEntity)2 Date (java.util.Date)1 CommandChecker (org.camunda.bpm.engine.impl.cfg.CommandChecker)1 CommandContext (org.camunda.bpm.engine.impl.interceptor.CommandContext)1