11-26-2014 02:05 PM
List<HistoricProcessInstance> filteredHistoricalProcessInstanceList = new NativeHistoricProcessInstanceQueryImpl(commandExecutor)
.sql("select * from( "+
"select ahp.* "+
" from act_hi_procinst ahp "+
" inner join ("+
" select distinct proc_inst_id_,text_ from act_hi_varinst "+
" where text_ = #{policyCd}) ahv "+
" on ahp.proc_inst_id_ = ahv.proc_inst_id_ "+
" where ahp.super_process_instance_id_ is null "+
" order by ahp.start_time_ desc) "+
" where rownum<=#{number} ")
.parameter("policyCd", policy.getPolicyCd())
.parameter("number", number).list();
12-02-2014 01:11 AM
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.