use of org.camunda.bpm.engine.impl.HistoricVariableInstanceQueryImpl in project camunda-bpm-platform by camunda.
the class HistoricVariableInstanceManager method deleteHistoricVariableInstancesByTaskId.
public void deleteHistoricVariableInstancesByTaskId(String taskId) {
if (isHistoryEnabled()) {
HistoricVariableInstanceQuery historicProcessVariableQuery = new HistoricVariableInstanceQueryImpl().taskIdIn(taskId);
List<HistoricVariableInstance> historicProcessVariables = historicProcessVariableQuery.list();
for (HistoricVariableInstance historicProcessVariable : historicProcessVariables) {
((HistoricVariableInstanceEntity) historicProcessVariable).delete();
}
}
}
Aggregations