Search in sources :

Example 1 with HistoricDetailQueryImpl

use of org.activiti.engine.impl.HistoricDetailQueryImpl in project Activiti by Activiti.

the class HistoricDetailEntityManager method deleteHistoricDetailsByTaskId.

public void deleteHistoricDetailsByTaskId(String taskId) {
    if (getHistoryManager().isHistoryLevelAtLeast(HistoryLevel.FULL)) {
        HistoricDetailQueryImpl detailsQuery = (HistoricDetailQueryImpl) new HistoricDetailQueryImpl().taskId(taskId);
        List<HistoricDetail> details = detailsQuery.list();
        for (HistoricDetail detail : details) {
            ((HistoricDetailEntity) detail).delete();
        }
    }
}
Also used : HistoricDetail(org.activiti.engine.history.HistoricDetail) HistoricDetailQueryImpl(org.activiti.engine.impl.HistoricDetailQueryImpl)

Aggregations

HistoricDetail (org.activiti.engine.history.HistoricDetail)1 HistoricDetailQueryImpl (org.activiti.engine.impl.HistoricDetailQueryImpl)1