public ExecutionQueryImpl orderByProcessDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ExecutionQueryProperty.PROCESS_DEFINITION_KEY)); return this; }
public ExecutionQueryImpl orderByProcessDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ExecutionQueryProperty.PROCESS_DEFINITION_KEY)); return this; }
public ProcessInstanceQuery orderByProcessDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ProcessInstanceQueryProperty.PROCESS_DEFINITION_KEY)); return this; }
public ProcessInstanceQuery orderByProcessDefinitionId() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ProcessInstanceQueryProperty.PROCESS_DEFINITION_ID)); return this; }
public CaseInstanceQuery orderByCaseDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_CASE_DEFINITION, CaseInstanceQueryProperty.CASE_DEFINITION_KEY)); return this; }
public ProcessInstanceQuery orderByProcessDefinitionId() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ProcessInstanceQueryProperty.PROCESS_DEFINITION_ID)); return this; }
public CaseInstanceQuery orderByCaseDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_CASE_DEFINITION, CaseInstanceQueryProperty.CASE_DEFINITION_KEY)); return this; }
public CaseExecutionQuery orderByCaseDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_CASE_DEFINITION, CaseExecutionQueryProperty.CASE_DEFINITION_KEY)); return this; }
public ProcessInstanceQuery orderByProcessDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ProcessInstanceQueryProperty.PROCESS_DEFINITION_KEY)); return this; }
public CaseExecutionQuery orderByCaseDefinitionKey() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_CASE_DEFINITION, CaseExecutionQueryProperty.CASE_DEFINITION_KEY)); return this; }
public ExecutionQueryImpl orderByProcessDefinitionId() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ExecutionQueryProperty.PROCESS_DEFINITION_ID)); return this; }
public ExecutionQueryImpl orderByProcessDefinitionId() { orderBy(new QueryOrderingProperty(QueryOrderingProperty.RELATION_PROCESS_DEFINITION, ExecutionQueryProperty.PROCESS_DEFINITION_ID)); return this; }
public T orderBy(QueryProperty property) { return orderBy(new QueryOrderingProperty(null, property)); }
public T orderBy(QueryProperty property) { return orderBy(new QueryOrderingProperty(null, property)); }
@SuppressWarnings("unchecked") public List<String> findHistoricBatchIdsForCleanup(Integer batchSize, Map<String, Integer> batchOperationsForHistoryCleanup, int minuteFrom, int minuteTo) { Map<String, Object> queryParameters = new HashMap<String, Object>(); queryParameters.put("currentTimestamp", ClockUtil.getCurrentTime()); queryParameters.put("map", batchOperationsForHistoryCleanup); if (minuteTo - minuteFrom + 1 < 60) { queryParameters.put("minuteFrom", minuteFrom); queryParameters.put("minuteTo", minuteTo); } ListQueryParameterObject parameterObject = new ListQueryParameterObject(queryParameters, 0, batchSize); parameterObject.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("END_TIME_"), Direction.ASCENDING)); return (List<String>) getDbEntityManager().selectList("selectHistoricBatchIdsForCleanup", parameterObject); }
@SuppressWarnings("unchecked") public List<String> findHistoricBatchIdsForCleanup(Integer batchSize, Map<String, Integer> batchOperationsForHistoryCleanup, int minuteFrom, int minuteTo) { Map<String, Object> queryParameters = new HashMap<String, Object>(); queryParameters.put("currentTimestamp", ClockUtil.getCurrentTime()); queryParameters.put("map", batchOperationsForHistoryCleanup); if (minuteTo - minuteFrom + 1 < 60) { queryParameters.put("minuteFrom", minuteFrom); queryParameters.put("minuteTo", minuteTo); } ListQueryParameterObject parameterObject = new ListQueryParameterObject(queryParameters, 0, batchSize); parameterObject.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("END_TIME_"), Direction.ASCENDING)); return (List<String>) getDbEntityManager().selectList("selectHistoricBatchIdsForCleanup", parameterObject); }
@SuppressWarnings("unchecked") public List<CleanableHistoricBatchReportResult> findCleanableHistoricBatchesReportByCriteria(CleanableHistoricBatchReportImpl query, Page page, Map<String, Integer> batchOperationsForHistoryCleanup) { query.setCurrentTimestamp(ClockUtil.getCurrentTime()); query.setParameter(batchOperationsForHistoryCleanup); query.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("TYPE_"), Direction.ASCENDING)); if (batchOperationsForHistoryCleanup.isEmpty()) { return getDbEntityManager().selectList("selectOnlyFinishedBatchesReportEntities", query, page); } else { return getDbEntityManager().selectList("selectFinishedBatchesReportEntities", query, page); } }
@SuppressWarnings("unchecked") public List<CleanableHistoricBatchReportResult> findCleanableHistoricBatchesReportByCriteria(CleanableHistoricBatchReportImpl query, Page page, Map<String, Integer> batchOperationsForHistoryCleanup) { query.setCurrentTimestamp(ClockUtil.getCurrentTime()); query.setParameter(batchOperationsForHistoryCleanup); query.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("TYPE_"), Direction.ASCENDING)); if (batchOperationsForHistoryCleanup.isEmpty()) { return getDbEntityManager().selectList("selectOnlyFinishedBatchesReportEntities", query, page); } else { return getDbEntityManager().selectList("selectFinishedBatchesReportEntities", query, page); } }
@SuppressWarnings("unchecked") public List<Event> findEventsByTaskId(String taskId) { checkHistoryEnabled(); ListQueryParameterObject query = new ListQueryParameterObject(); query.setParameter(taskId); query.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("TIME_"), Direction.DESCENDING)); return getDbEntityManager().selectList("selectEventsByTaskId", query); }
@SuppressWarnings("unchecked") public List<Event> findEventsByTaskId(String taskId) { checkHistoryEnabled(); ListQueryParameterObject query = new ListQueryParameterObject(); query.setParameter(taskId); query.getOrderingProperties().add(new QueryOrderingProperty(new QueryPropertyImpl("TIME_"), Direction.DESCENDING)); return getDbEntityManager().selectList("selectEventsByTaskId", query); }