提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.controller.admin.task.vo.instance; |
H |
2 |
|
|
3 |
import com.iailab.module.bpm.controller.admin.definition.vo.process.BpmProcessDefinitionRespVO; |
|
4 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
5 |
import lombok.Data; |
|
6 |
|
|
7 |
import java.time.LocalDateTime; |
|
8 |
import java.util.List; |
|
9 |
import java.util.Map; |
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 流程实例的 Response VO") |
|
12 |
@Data |
|
13 |
public class BpmProcessInstanceRespVO { |
|
14 |
|
|
15 |
@Schema(description = "流程实例的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
16 |
private String id; |
|
17 |
|
|
18 |
@Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
19 |
private String name; |
|
20 |
|
|
21 |
@Schema(description = "流程分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
22 |
private String category; |
|
23 |
@Schema(description = "流程分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "请假") |
|
24 |
private String categoryName; |
|
25 |
|
|
26 |
@Schema(description = "流程实例的状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
27 |
private Integer status; // 参见 BpmProcessInstanceStatusEnum 枚举 |
|
28 |
|
|
29 |
@Schema(description = "发起时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
30 |
private LocalDateTime startTime; |
|
31 |
|
|
32 |
@Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
33 |
private LocalDateTime endTime; |
|
34 |
|
|
35 |
@Schema(description = "持续时间", example = "1000") |
|
36 |
private Long durationInMillis; |
|
37 |
|
|
38 |
@Schema(description = "提交的表单值", requiredMode = Schema.RequiredMode.REQUIRED) |
|
39 |
private Map<String, Object> formVariables; |
|
40 |
|
|
41 |
@Schema(description = "业务的唯一标识-例如说,请假申请的编号", example = "1") |
|
42 |
private String businessKey; |
|
43 |
|
|
44 |
/** |
|
45 |
* 发起流程的用户 |
|
46 |
*/ |
|
47 |
private User startUser; |
|
48 |
|
|
49 |
@Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
|
50 |
private String processDefinitionId; |
|
51 |
/** |
|
52 |
* 流程定义 |
|
53 |
*/ |
|
54 |
private BpmProcessDefinitionRespVO processDefinition; |
|
55 |
|
|
56 |
/** |
|
57 |
* 当前审批中的任务 |
|
58 |
*/ |
|
59 |
private List<Task> tasks; // 仅在流程实例分页才返回 |
|
60 |
|
|
61 |
@Schema(description = "用户信息") |
|
62 |
@Data |
|
63 |
public static class User { |
|
64 |
|
|
65 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
66 |
private Long id; |
|
67 |
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
68 |
private String nickname; |
|
69 |
|
|
70 |
@Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
71 |
private Long deptId; |
|
72 |
@Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "研发部") |
|
73 |
private String deptName; |
|
74 |
|
|
75 |
} |
|
76 |
|
|
77 |
@Schema(description = "流程任务") |
|
78 |
@Data |
|
79 |
public static class Task { |
|
80 |
|
|
81 |
@Schema(description = "流程任务的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
82 |
private String id; |
|
83 |
|
|
84 |
@Schema(description = "任务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
85 |
private String name; |
|
86 |
|
|
87 |
} |
|
88 |
|
|
89 |
} |