1.在BPMN文件中的设置如下
1.1
1.2
2.在完成five节点时,设置后面节点和线路所需的参数,代码如下:
@RequestMapping("/completeTwo") public String completeTwo(String taskId, Integer one, Integer two, Integer three,@RequestParam(value = "list" ,required=false) List<String> list) { System.out.println("list==="+list.toString()); Map<String,Object> map = new HashMap<>(); map.put("one",one); map.put("two",two); map.put("three",three); map.put("daterList",list); taskService.complete(taskId,map); return "成功"; } |
3.使用postman测试接口结果如下: