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();
}
}
}
Aggregations