Search in sources :

Example 1 with HistoricVariableInstanceQueryImpl

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();
        }
    }
}
Also used : HistoricVariableInstanceQuery(org.camunda.bpm.engine.history.HistoricVariableInstanceQuery) HistoricVariableInstanceQueryImpl(org.camunda.bpm.engine.impl.HistoricVariableInstanceQueryImpl) HistoricVariableInstance(org.camunda.bpm.engine.history.HistoricVariableInstance)

Aggregations

HistoricVariableInstance (org.camunda.bpm.engine.history.HistoricVariableInstance)1 HistoricVariableInstanceQuery (org.camunda.bpm.engine.history.HistoricVariableInstanceQuery)1 HistoricVariableInstanceQueryImpl (org.camunda.bpm.engine.impl.HistoricVariableInstanceQueryImpl)1