### Question:
ProcessHandler { public List<ProcessInstance> getAllProcessInstance(){ List<ProcessInstance> list = runtimeService .createProcessInstanceQuery() .list(); logger.info("[查询全部流程] 共 " + list.size() + " 条记录"); return list; }  boolean startProcessInstance(String name); List<ProcessInstance> getAllProcessInstance(); boolean isProcessInstanceEnd(String processInstanceId);  }### Answer:
@Test public void getAllProcessInstance(){ List<ProcessInstance> list = ps.getAllProcessInstance(); for (ProcessInstance pi : list) { System.out.println(pi.toString()); } }