提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.controller.admin.task.vo.task; |
H |
2 |
|
|
3 |
import com.iailab.module.bpm.controller.admin.task.vo.instance.BpmProcessInstanceRespVO; |
|
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 BpmTaskRespVO { |
|
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) |
|
22 |
private LocalDateTime createTime; |
|
23 |
|
|
24 |
@Schema(description = "结束时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
25 |
private LocalDateTime endTime; |
|
26 |
|
|
27 |
@Schema(description = "持续时间", example = "1000") |
|
28 |
private Long durationInMillis; |
|
29 |
|
|
30 |
@Schema(description = "任务状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
31 |
private Integer status; // 参见 BpmTaskStatusEnum 枚举 |
|
32 |
|
|
33 |
@Schema(description = "审批理由", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
34 |
private String reason; |
|
35 |
|
|
36 |
/** |
|
37 |
* 负责人的用户信息 |
|
38 |
*/ |
|
39 |
private BpmProcessInstanceRespVO.User ownerUser; |
|
40 |
/** |
|
41 |
* 审核的用户信息 |
|
42 |
*/ |
|
43 |
private BpmProcessInstanceRespVO.User assigneeUser; |
|
44 |
|
|
45 |
@Schema(description = "任务定义的标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "Activity_one") |
|
46 |
private String taskDefinitionKey; |
|
47 |
|
|
48 |
@Schema(description = "所属流程实例编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8888") |
|
49 |
private String processInstanceId; |
|
50 |
/** |
|
51 |
* 所属流程实例 |
|
52 |
*/ |
|
53 |
private ProcessInstance processInstance; |
|
54 |
|
|
55 |
@Schema(description = "父任务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
56 |
private String parentTaskId; |
|
57 |
@Schema(description = "子任务列表(由加签生成)", requiredMode = Schema.RequiredMode.REQUIRED, example = "childrenTask") |
|
58 |
private List<BpmTaskRespVO> children; |
|
59 |
|
|
60 |
@Schema(description = "表单编号", example = "1024") |
|
61 |
private Long formId; |
|
62 |
@Schema(description = "表单名字", example = "请假表单") |
|
63 |
private String formName; |
|
64 |
@Schema(description = "表单的配置-JSON 字符串") |
|
65 |
private String formConf; |
|
66 |
@Schema(description = "表单项的数组") |
|
67 |
private List<String> formFields; |
|
68 |
@Schema(description = "提交的表单值", requiredMode = Schema.RequiredMode.REQUIRED) |
|
69 |
private Map<String, Object> formVariables; |
|
70 |
|
|
71 |
@Data |
|
72 |
@Schema(description = "流程实例") |
|
73 |
public static class ProcessInstance { |
|
74 |
|
|
75 |
@Schema(description = "流程实例编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
76 |
private String id; |
|
77 |
|
|
78 |
@Schema(description = "流程实例名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
79 |
private String name; |
|
80 |
|
|
81 |
@Schema(description = "提交时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
82 |
private LocalDateTime createTime; |
|
83 |
|
|
84 |
@Schema(description = "流程定义的编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2048") |
|
85 |
private String processDefinitionId; |
|
86 |
|
|
87 |
/** |
|
88 |
* 发起人的用户信息 |
|
89 |
*/ |
|
90 |
private BpmProcessInstanceRespVO.User startUser; |
|
91 |
|
|
92 |
} |
|
93 |
|
|
94 |
} |