ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
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
72
package jnpf.flowable.enums;
 
import lombok.Getter;
 
@Getter
public enum EventEnum {
    /**
     * 无
     */
    None(0, "无"),
    /**
     * 发起
     */
    Init(1, "发起"),
    /**
     * 结束
     */
    End(2, "结束"),
    /**
     * 发起撤回
     */
    FlowRecall(3, "发起撤回"),
    /**
     * 同意
     */
    Approve(4, "同意"),
    /**
     * 拒绝
     */
    Reject(5, "拒绝"),
    /**
     * 节点撤回
     */
    Recall(6, "节点撤回"),
    /**
     * 超时
     */
    Overtime(7, "超时"),
    /**
     * 提醒
     */
    Notice(8, "提醒"),
    /**
     * 退回
     */
    Back(9, "退回"),
 
 
    ;
 
    private final Integer status;
    private final String message;
 
    EventEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
 
    /**
     * 根据状态status获取枚举名称
     *
     * @return
     */
    public static EventEnum getEventStatus(Integer status) {
        for (EventEnum eventEnum : EventEnum.values()) {
            if (eventEnum.getStatus().equals(status)) {
                return eventEnum;
            }
        }
        return EventEnum.None;
    }
}