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