燕鹏 преди 4 години
родител
ревизия
168d870a44
  1. 3
      src/main/java/com/example/demo/controller/HolidayController.java
  2. 1
      src/main/java/com/example/demo/controller/WorkFlowController.java

3
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<Task> testbpmn = taskService.createTaskQuery().processDefinitionKey("holidayex").list();
testbpmn.stream().forEach(x->{
System.out.println(x.getProcessDefinitionId());

1
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<Task> holidayex = taskService.createTaskQuery().processDefinitionKey("holidayex").list();
holidayex.stream().forEach(x -> {
System.out.println(x.getProcessDefinitionId());

Зареждане…
Отказ
Запис