From a050a8b15e6c6014f6d6db2e8b074515548a6f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E9=B9=8F?= Date: Mon, 9 Nov 2020 14:02:01 +0800 Subject: [PATCH] runtime --- .../java/com/example/demo/controller/HolidayController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/example/demo/controller/HolidayController.java b/src/main/java/com/example/demo/controller/HolidayController.java index d9e5fb7..c4ae65d 100644 --- a/src/main/java/com/example/demo/controller/HolidayController.java +++ b/src/main/java/com/example/demo/controller/HolidayController.java @@ -3,6 +3,7 @@ package com.example.demo.controller; import com.example.demo.entity.Holiday; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; +import org.activiti.api.task.runtime.TaskRuntime; import org.activiti.engine.ProcessEngine; import org.activiti.engine.RepositoryService; import org.activiti.engine.RuntimeService; @@ -34,6 +35,9 @@ public class HolidayController { @Autowired private ProcessEngine processEngine; + @Autowired + private TaskRuntime taskRuntime; + @ApiOperation(value = "发布工作流") @GetMapping("deploy") public void deploy() {