05-03-2016 10:25 AM
05-04-2016 08:12 AM
05-04-2016 10:03 AM
List<HistoricActivityInstance> resultado = historyService.createNativeHistoricActivityInstanceQuery()
.sql(" SELECT atividade.* " +
" FROM " + managementService.getTableName(HistoricActivityInstance.class) + " atividade " +
" INNER JOIN "+ managementService.getTableName(HistoricVariableInstance.class) +" variavel ON atividade.proc_inst_id_ = variavel.proc_inst_id_ " +
" WHERE atividade.act_id_ = #{activityId} " +
" AND variavel.name_ = #{variableName} " +
" AND variavel.long_ = #{variableValue} " +
" ORDER BY atividade.end_time_ DESC ")
.parameter("variableName", variableName)
.parameter("variableValue", variableValue)
.parameter("activityId", activityId)
.list();
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.