592593594595596597598599600601602
/** * 查询流程中活动的任务 */ public List<Task> listTaskByProcessId( String processId ){ TaskQuery query = taskService.createTaskQuery(); query.active(); query.processInstanceId(processId); return query.list(); }
604605606607608609610611612613614
* 当前活动Task * @param processId 流程实例ID */ protected Task getCurrentTask( String processId ){ TaskQuery query = taskService.createTaskQuery(); query.active(); query.processInstanceId(processId).listPage(0,1); return query.singleResult(); }
223224225226227228229230231232233
taskQuery.withoutTaskDueDate(); } if (request.getActive() != null) { if (request.getActive().booleanValue()) { taskQuery.active(); } else { taskQuery.suspended(); } }