Selaa lähdekoodia

修改指定人员判断

hym 4 vuotta sitten
vanhempi
commit
1c01941fd8

+ 3 - 2
operation_manager/src/main/java/com/huaxu/process/controller/WorkFlowController.java

@@ -152,8 +152,8 @@ public class WorkFlowController {
     }
     @GetMapping("/testStartProgress")
     @ApiOperation(value = "开启流程")
-    public AjaxMessage testStartProgress() {
-        ProcessDefinition processDefinition=workFlowService.findProcessDefinition("test1",8,8);
+    public AjaxMessage testStartProgress( @RequestParam Integer id) {
+        ProcessDefinition processDefinition=workFlowService.findProcessDefinition("test1",1,id);
 
         Map<String, Object> vars=new HashMap<>();
         vars.put("assineeFormUserId","55,66");
@@ -170,6 +170,7 @@ public class WorkFlowController {
         String startProcess = workFlowService.startProcess(processDefinition, vars);
         Task task = workFlowService.getProcessRuntimeTask(startProcess).get(0);
         Set<String> taskParticipator = workFlowService.getTaskParticipator(task.getId(), false, null);
+        taskParticipator.add(task.getId());
         return new AjaxMessage(ResultStatus.OK,taskParticipator);
     }
     @PostMapping ("/testHandleTask")

+ 2 - 1
operation_manager/src/main/java/com/huaxu/process/service/impl/WorkFlowServiceImpl.java

@@ -395,7 +395,8 @@ public class WorkFlowServiceImpl implements WorkFlowService {
                     currentTaskName = currentTask.getName();
                     currentTaskId = currentTask.getId();
                     boolean isAssignee ;
-                    if(action.equals(Action.ACTION_REJECT)){
+                    //指定人处理任务
+                    if(action==null){
                         isAssignee = true ;
                     }
                     else{