查询历史活动流程实例
查询历史活动:
/**
* 查询历史活动流程实例
*/
@Test
public void queryHistory() {
HistoryService historyService = engine.getHistoryService();
List<HistoricActivityInstance> list = historyService.createHistoricActivityInstanceQuery().finished()
.orderByProcessInstanceId().desc()
.list();
list.forEach(p->{
System.out.println("ID:"+p.getId());
System.out.println("流程实例ID:"+p.getProcessInstanceId());
System.out.println("活动名称:"+p.getActivityName());
System.out.println("办理人:"+p.getAssignee());
System.out.println("开始时间:"+p.getStartTime());
System.out.println("结束时间:"+p.getEndTime());
System.out.println("===================");
});
}
版权声明:本博客所有文章除特殊声明外,转载请注明出处 Mr Xue的博客!