This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricActivityInstance> processSteps = nativeHistoricActivityInstanceQuery | |
.sql("select RES.* from `activiti`.`ACT_HI_ACTINST` RES" + " WHERE RES.PROC_INST_ID_ = \"30\"").list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricActivityInstance> processSteps = historicActivityInstanceQuery.processInstanceId(processInstanceId).list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long stepCountForProcess = historicActivityInstanceQuery.processInstanceId(processInstanceId).count(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricActivityInstance> runningSteps = historicActivityInstanceQuery | |
.processInstanceId(processInstanceId) | |
.unfinished() | |
.orderByHistoricActivityInstanceStartTime() | |
.desc() | |
.list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
taskService.setVariable(firstTask.getId(), "variable1", "value1"); | |
taskService.setVariable(firstTask.getId(), "variable1", "value2"); | |
taskService.setVariable(firstTask.getId(), "variable1", "value3"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricDetail> resultSet = historicDetailQuery.taskId(firstTask.getId()).variableUpdates().orderByTime().asc().list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HistoricTaskInstance hti = historicTaskInstanceQuery | |
.taskAssignee("gonzo") | |
.taskCreatedAfter(firstOfNovember) | |
.singleResult(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricVariableInstance> variables = historicVariableInstanceQuery.variableName("variable1").list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricActivityInstance> processSteps = nativeHistoricActivityInstanceQuery | |
.sql("select RES.* from `activiti`.`ACT_HI_ACTINST` RES" + " WHERE RES.PROC_INST_ID_ = \"30\"").list(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<HistoricActivityInstance> processSteps = nativeHistoricActivityInstanceQuery.sql("SELECT `ID_` , `PROC_INST_ID_`, `PROC_DEF_ID_`, `START_TIME_`, `END_TIME_`, `DURATION_`, `START_USER_ID_`, `START_ACT_ID_` as `ACT_ID_` , `END_ACT_ID_`, `NAME_` as `ACT_NAME_` FROM `activiti`.`ACT_HI_PROCINST` LIMIT 1000;").list(); |
OlderNewer