|
|
@@ -344,7 +344,7 @@ public class TodoCenterManage { |
|
|
|
//通过审核后 所处理的逻辑 |
|
|
|
handlerManage.afterPassTodo(declaredProject,instance); |
|
|
|
|
|
|
|
return findNextTaskId(instance); |
|
|
|
return findNextTaskId(instance,employeeCode); |
|
|
|
// 驳回 |
|
|
|
case REJECT: |
|
|
|
// 驳回该任务,中止流程并使项目进入对应状态,给项目创建人、流程发起人发送浙政钉工作通知: |
|
|
@@ -392,10 +392,11 @@ public class TodoCenterManage { |
|
|
|
* @param instance |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private String findNextTaskId(HistoricProcessInstance instance) { |
|
|
|
private String findNextTaskId(HistoricProcessInstance instance,String employeeCode) { |
|
|
|
List<ActivityInstance> userTasks = runtimeService.createActivityInstanceQuery() |
|
|
|
.activityType("userTask") |
|
|
|
.processInstanceId(instance.getId()) |
|
|
|
.taskAssignee(employeeCode) |
|
|
|
.orderByActivityInstanceStartTime() |
|
|
|
.desc() |
|
|
|
.unfinished() |
|
|
|