提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.controller.admin.definition.vo.process; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.time.LocalDateTime; |
|
7 |
import java.util.List; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - 流程定义 Response VO") |
|
10 |
@Data |
|
11 |
public class BpmProcessDefinitionRespVO { |
|
12 |
|
|
13 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
14 |
private String id; |
|
15 |
|
|
16 |
@Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
17 |
private Integer version; |
|
18 |
|
bb2880
|
19 |
@Schema(description = "流程名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道") |
e7c126
|
20 |
private String name; |
H |
21 |
|
bb2880
|
22 |
@Schema(description = "流程标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao") |
e7c126
|
23 |
private String key; |
H |
24 |
|
bb2880
|
25 |
@Schema(description = "流程图标", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/yudao.jpg") |
e7c126
|
26 |
private String icon; |
H |
27 |
|
|
28 |
@Schema(description = "流程描述", example = "我是描述") |
|
29 |
private String description; |
|
30 |
|
|
31 |
@Schema(description = "流程分类", example = "1") |
|
32 |
private String category; |
|
33 |
@Schema(description = "流程分类名字", example = "请假") |
|
34 |
private String categoryName; |
bb2880
|
35 |
|
H |
36 |
@Schema(description = "流程模型的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
37 |
private Integer modelType; // 参见 BpmModelTypeEnum 枚举类 |
e7c126
|
38 |
|
H |
39 |
@Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1") |
|
40 |
private Integer formType; |
|
41 |
@Schema(description = "表单编号-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", example = "1024") |
|
42 |
private Long formId; |
|
43 |
@Schema(description = "表单名字", example = "请假表单") |
|
44 |
private String formName; |
|
45 |
@Schema(description = "表单的配置-JSON 字符串。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
|
46 |
private String formConf; |
|
47 |
@Schema(description = "表单项的数组-JSON 字符串的数组。在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", requiredMode = Schema.RequiredMode.REQUIRED) |
|
48 |
private List<String> formFields; |
|
49 |
@Schema(description = "自定义表单的提交路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
|
50 |
example = "/bpm/oa/leave/create") |
|
51 |
private String formCustomCreatePath; |
|
52 |
@Schema(description = "自定义表单的查看路径,使用 Vue 的路由地址-在表单类型为 {@link BpmModelFormTypeEnum#CUSTOM} 时,必须非空", |
|
53 |
example = "/bpm/oa/leave/view") |
|
54 |
private String formCustomViewPath; |
|
55 |
|
|
56 |
@Schema(description = "中断状态-参见 SuspensionState 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
57 |
private Integer suspensionState; // 参见 SuspensionState 枚举 |
|
58 |
|
|
59 |
@Schema(description = "部署时间") |
|
60 |
private LocalDateTime deploymentTime; // 需要从对应的 Deployment 读取,非必须返回 |
|
61 |
|
|
62 |
@Schema(description = "BPMN XML") |
|
63 |
private String bpmnXml; // 需要从对应的 BpmnModel 读取,非必须返回 |
|
64 |
|
bb2880
|
65 |
@Schema(description = "SIMPLE 设计器模型数据 json 格式") |
H |
66 |
private String simpleModel; // 非必须返回 |
e7c126
|
67 |
|
bb2880
|
68 |
@Schema(description = "流程定义排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
H |
69 |
private Long sort; |
|
70 |
|
e7c126
|
71 |
@Schema(description = "BPMN UserTask 用户任务") |
H |
72 |
@Data |
|
73 |
public static class UserTask { |
|
74 |
|
|
75 |
@Schema(description = "任务标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "sudo") |
|
76 |
private String id; |
|
77 |
|
|
78 |
@Schema(description = "任务名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五") |
|
79 |
private String name; |
|
80 |
|
|
81 |
} |
|
82 |
|
|
83 |
} |