|
|
@ -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()); |
|
|
|