提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.controller.admin.task; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.bpm.controller.admin.task.vo.activity.BpmActivityRespVO; |
|
5 |
import com.iailab.module.bpm.service.task.BpmActivityService; |
|
6 |
import io.swagger.v3.oas.annotations.Operation; |
|
7 |
import io.swagger.v3.oas.annotations.Parameter; |
|
8 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
9 |
import org.springframework.security.access.prepost.PreAuthorize; |
|
10 |
import org.springframework.validation.annotation.Validated; |
|
11 |
import org.springframework.web.bind.annotation.GetMapping; |
|
12 |
import org.springframework.web.bind.annotation.RequestMapping; |
|
13 |
import org.springframework.web.bind.annotation.RequestParam; |
|
14 |
import org.springframework.web.bind.annotation.RestController; |
|
15 |
|
|
16 |
import javax.annotation.Resource; |
|
17 |
import java.util.List; |
|
18 |
|
|
19 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
|
20 |
|
|
21 |
@Tag(name = "管理后台 - 流程活动实例") |
|
22 |
@RestController |
|
23 |
@RequestMapping("/bpm/activity") |
|
24 |
@Validated |
|
25 |
public class BpmActivityController { |
|
26 |
|
|
27 |
@Resource |
|
28 |
private BpmActivityService activityService; |
|
29 |
|
|
30 |
@GetMapping("/list") |
|
31 |
@Operation(summary = "生成指定流程实例的高亮流程图", |
|
32 |
description = "只高亮进行中的任务。不过要注意,该接口暂时没用,通过前端的 ProcessViewer.vue 界面的 highlightDiagram 方法生成") |
|
33 |
@Parameter(name = "processInstanceId", description = "流程实例的编号", required = true) |
|
34 |
@PreAuthorize("@ss.hasPermission('bpm:task:query')") |
|
35 |
public CommonResult<List<BpmActivityRespVO>> getActivityList( |
|
36 |
@RequestParam("processInstanceId") String processInstanceId) { |
|
37 |
return success(activityService.getActivityListByProcessInstanceId(processInstanceId)); |
|
38 |
} |
|
39 |
} |