From 168d870a4434a1c91f5bb4840036dc2a58284cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E9=B9=8F?= Date: Mon, 16 Nov 2020 15:04:27 +0800 Subject: [PATCH] success --- .../java/com/example/demo/controller/HolidayController.java | 3 +-- .../java/com/example/demo/controller/WorkFlowController.java | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/example/demo/controller/HolidayController.java b/src/main/java/com/example/demo/controller/HolidayController.java index 5fdcb66..38b149b 100644 --- a/src/main/java/com/example/demo/controller/HolidayController.java +++ b/src/main/java/com/example/demo/controller/HolidayController.java @@ -48,7 +48,7 @@ public class HolidayController { @GetMapping("deploy") public void deploy() { RepositoryService repositoryService = processEngine.getRepositoryService(); - Deployment deploy = repositoryService.createDeployment().addClasspathResource("bpmn/test.bpmn").name("请假申请流程").key("holidayex").deploy(); + Deployment deploy = repositoryService.createDeployment().addClasspathResource("bpmn/test.bpmn").name("请假申请流程").key("请假申请流程").deploy(); System.out.println(deploy.getId()); System.out.println(deploy.getName()); System.out.println(deploy.getKey()); @@ -75,7 +75,6 @@ public class HolidayController { @ApiOperation(value = "查询任务") @GetMapping("query") public Boolean query() { -// TaskService taskService = processEngine.getTaskService(); List testbpmn = taskService.createTaskQuery().processDefinitionKey("holidayex").list(); testbpmn.stream().forEach(x->{ System.out.println(x.getProcessDefinitionId()); diff --git a/src/main/java/com/example/demo/controller/WorkFlowController.java b/src/main/java/com/example/demo/controller/WorkFlowController.java index 5e784d1..536e61e 100644 --- a/src/main/java/com/example/demo/controller/WorkFlowController.java +++ b/src/main/java/com/example/demo/controller/WorkFlowController.java @@ -155,7 +155,6 @@ public class WorkFlowController { @ApiOperation(value = "查询任务") @GetMapping("query") public Boolean query() { -// TaskService taskService = processEngine.getTaskService(); List holidayex = taskService.createTaskQuery().processDefinitionKey("holidayex").list(); holidayex.stream().forEach(x -> { System.out.println(x.getProcessDefinitionId());