| | |
| | | |
| | | List<HistoricTaskInstance> list = null; |
| | | if (user.getPage() != PageDto.DEFAULT_PAGE) { |
| | | list = query.listPage(user.getPage(), user.getRow()); |
| | | list = query.listPage((user.getPage() - 1) * user.getRow(), user.getRow()); |
| | | } else { |
| | | list = query.list(); |
| | | } |
| | |
| | | taskService.addComment(complaintDto.getTaskId(), processInstanceId, complaintDto.getAuditMessage()); |
| | | Map<String, Object> variables = new HashMap<String, Object>(); |
| | | variables.put("auditCode", complaintDto.getAuditCode()); |
| | | //variables.put("userId", complaintDto.getCurrentUserId()); |
| | | taskService.setAssignee(complaintDto.getTaskId(),complaintDto.getCurrentUserId()); |
| | | taskService.complete(complaintDto.getTaskId(), variables); |
| | | |
| | | ProcessInstance pi = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); |