提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.api.task.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotEmpty; |
|
7 |
import java.util.List; |
|
8 |
import java.util.Map; |
|
9 |
|
|
10 |
@Schema(description = "RPC 服务 - 流程实例的创建 Request DTO") |
|
11 |
@Data |
|
12 |
public class BpmProcessInstanceCreateReqDTO { |
|
13 |
|
|
14 |
@Schema(description = "流程定义的标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "leave") |
|
15 |
@NotEmpty(message = "流程定义的标识不能为空") |
|
16 |
private String processDefinitionKey; |
|
17 |
|
|
18 |
@Schema(description = "变量实例", requiredMode = Schema.RequiredMode.REQUIRED) |
|
19 |
private Map<String, Object> variables; |
|
20 |
|
|
21 |
@Schema(description = "业务的唯一标识", requiredMode = Schema.RequiredMode.REQUIRED) |
|
22 |
@NotEmpty(message = "业务的唯一标识不能为空") |
|
23 |
private String businessKey; // 例如说,请假申请的编号。通过它,可以查询到对应的实例 |
|
24 |
|
|
25 |
/** |
|
26 |
* 发起人自选审批人 Map |
|
27 |
* |
|
28 |
* key:taskKey 任务编码 |
|
29 |
* value:审批人的数组 |
|
30 |
* 例如:{ taskKey1 :[1, 2] },则表示 taskKey1 这个任务,提前设定了,由 userId 为 1,2 的用户进行审批 |
|
31 |
*/ |
|
32 |
@Schema(description = "发起人自选审批人 Map") |
|
33 |
private Map<String, List<Long>> startUserSelectAssignees; |
|
34 |
|
|
35 |
} |