|
@@ -8,9 +8,11 @@ import io.swagger.annotations.Api;
|
8
|
8
|
import io.swagger.annotations.ApiOperation;
|
9
|
9
|
import io.swagger.annotations.ApiParam;
|
10
|
10
|
import lombok.extern.slf4j.Slf4j;
|
|
11
|
+import org.flowable.engine.history.HistoricProcessInstance;
|
11
|
12
|
import org.springframework.beans.factory.annotation.Autowired;
|
12
|
13
|
import org.springframework.web.bind.annotation.*;
|
13
|
14
|
|
|
15
|
+import java.util.List;
|
14
|
16
|
import java.util.Map;
|
15
|
17
|
|
16
|
18
|
/**
|
|
@@ -45,6 +47,13 @@ public class FlowInstanceController {
|
45
|
47
|
return AjaxResult.success();
|
46
|
48
|
}
|
47
|
49
|
|
|
50
|
+ @ApiOperation(value = "根据流程实例id获取子流程id列表")
|
|
51
|
+ @PostMapping(value = "/listSubProcInstId")
|
|
52
|
+ public AjaxResult listSubProcInstId(@ApiParam(value = "流程实例ID", required = true) @RequestParam String instanceId) {
|
|
53
|
+ List<HistoricProcessInstance> subProcInstIdList = flowInstanceService.listSubProcInstId(instanceId);
|
|
54
|
+ return AjaxResult.success(subProcInstIdList);
|
|
55
|
+ }
|
|
56
|
+
|
48
|
57
|
@ApiOperation("结束流程实例")
|
49
|
58
|
@PostMapping(value = "/stopProcessInstance")
|
50
|
59
|
public AjaxResult stopProcessInstance(@RequestBody FlowTaskVo flowTaskVo) {
|