|
@ -48,7 +48,7 @@ public class HolidayController { |
|
|
@GetMapping("deploy") |
|
|
@GetMapping("deploy") |
|
|
public void deploy() { |
|
|
public void deploy() { |
|
|
RepositoryService repositoryService = processEngine.getRepositoryService(); |
|
|
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.getId()); |
|
|
System.out.println(deploy.getName()); |
|
|
System.out.println(deploy.getName()); |
|
|
System.out.println(deploy.getKey()); |
|
|
System.out.println(deploy.getKey()); |
|
@ -75,7 +75,6 @@ public class HolidayController { |
|
|
@ApiOperation(value = "查询任务") |
|
|
@ApiOperation(value = "查询任务") |
|
|
@GetMapping("query") |
|
|
@GetMapping("query") |
|
|
public Boolean query() { |
|
|
public Boolean query() { |
|
|
// TaskService taskService = processEngine.getTaskService();
|
|
|
|
|
|
List<Task> testbpmn = taskService.createTaskQuery().processDefinitionKey("holidayex").list(); |
|
|
List<Task> testbpmn = taskService.createTaskQuery().processDefinitionKey("holidayex").list(); |
|
|
testbpmn.stream().forEach(x->{ |
|
|
testbpmn.stream().forEach(x->{ |
|
|
System.out.println(x.getProcessDefinitionId()); |
|
|
System.out.println(x.getProcessDefinitionId()); |
|
|