baoshiwei
2025-03-12 f1208474f771a1c233d7425c8ed13fbaa0d521ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package org.dromara.workflow.domain.bo;
 
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.dromara.common.core.validate.AddGroup;
 
import java.io.Serial;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
 
 
/**
 * 驳回参数请求
 *
 * @author may
 */
@Data
public class BackProcessBo implements Serializable {
 
    @Serial
    private static final long serialVersionUID = 1L;
 
    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = AddGroup.class)
    private Long taskId;
 
    /**
     * 附件id
     */
    private String fileId;
 
    /**
     * 消息类型
     */
    private List<String> messageType;
 
    /**
     * 驳回的节点id(目前未使用,直接驳回到申请人)
     */
    @NotBlank(message = "驳回的节点不能为空", groups = AddGroup.class)
    private String nodeCode;
 
    /**
     * 办理意见
     */
    private String message;
 
    /**
     * 通知
     */
    private String notice;
 
    /**
     * 流程变量
     */
    private Map<String, Object> variables;
 
    public Map<String, Object> getVariables() {
        if (variables == null) {
            return new HashMap<>(16);
        }
        variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
        return variables;
    }
}