|
@@ -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")
|