use of org.camunda.bpm.engine.impl.HistoricDecisionInstanceQueryImpl in project camunda-bpm-platform by camunda.
the class DeleteHistoricDecisionInstancesBatchCmd method collectHistoricDecisionInstanceIds.
protected List<String> collectHistoricDecisionInstanceIds() {
Set<String> collectedDecisionInstanceIds = new HashSet<String>();
List<String> decisionInstanceIds = getHistoricDecisionInstanceIds();
if (decisionInstanceIds != null) {
collectedDecisionInstanceIds.addAll(decisionInstanceIds);
}
final HistoricDecisionInstanceQueryImpl decisionInstanceQuery = (HistoricDecisionInstanceQueryImpl) historicDecisionInstanceQuery;
if (decisionInstanceQuery != null) {
for (HistoricDecisionInstance hdi : decisionInstanceQuery.list()) {
collectedDecisionInstanceIds.add(hdi.getId());
}
}
return new ArrayList<String>(collectedDecisionInstanceIds);
}
Aggregations