query.processInstanceNameLike(name); if (!StrUtil.isEmpty(businessKey)) { query = query.processInstanceBusinessKey(businessKey);
protected void initializeCurrentValues() { if (ExplorerApp.get().getCrystalBallSimulationDebugger() != null) { this.simulationDebugger = ExplorerApp.get().getCrystalBallSimulationDebugger(); this.simulationEvents = ExplorerApp.get().getCrystalBallSimulationEvents(); String selectedDefinitionId = ExplorerApp.get().getCrystalBallCurrentDefinitionId(); if (selectedDefinitionId != null) { definitionSelect.setValue(selectedDefinitionId); } String selectedInstanceId = ExplorerApp.get().getCrystalBallCurrentInstanceId(); if (selectedInstanceId != null) { instanceTable.setValue(selectedInstanceId); } List<HistoricProcessInstance> replayProcessInstanceList = historyService.createHistoricProcessInstanceQuery() .processInstanceBusinessKey(SIMULATION_BUSINESS_KEY) .orderByProcessInstanceStartTime() .desc() .list(); if (replayProcessInstanceList != null && !replayProcessInstanceList.isEmpty()) { replayHistoricInstance = replayProcessInstanceList.get(0); } refreshEvents(); } }
} else { boolean nameUsed = ProcessEngines.getDefaultProcessEngine().getHistoryService() .createHistoricProcessInstanceQuery().processInstanceBusinessKey(reportName).count() != 0; if (nameUsed) { error = i18nManager.getMessage(Messages.REPORTING_SAVE_POPUP_NAME_EXISTS);
.processInstanceBusinessKey(SIMULATION_BUSINESS_KEY) .orderByProcessInstanceStartTime() .desc()
query.processInstanceBusinessKey(queryRequest.getProcessBusinessKey());