提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.bpm.event; |
H |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
import org.springframework.context.ApplicationEvent; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
|
|
8 |
/** |
|
9 |
* 流程实例的状态(结果)发生变化的 Event |
|
10 |
* |
|
11 |
* @author iailab |
|
12 |
*/ |
|
13 |
@SuppressWarnings("ALL") |
|
14 |
@Data |
|
15 |
public class BpmProcessInstanceStatusEvent extends ApplicationEvent { |
|
16 |
|
|
17 |
/** |
|
18 |
* 流程实例的编号 |
|
19 |
*/ |
|
20 |
@NotNull(message = "流程实例的编号不能为空") |
|
21 |
private String id; |
|
22 |
/** |
|
23 |
* 流程实例的 key |
|
24 |
*/ |
|
25 |
@NotNull(message = "流程实例的 key 不能为空") |
|
26 |
private String processDefinitionKey; |
|
27 |
/** |
|
28 |
* 流程实例的结果 |
|
29 |
*/ |
|
30 |
@NotNull(message = "流程实例的状态不能为空") |
|
31 |
private Integer status; |
|
32 |
/** |
|
33 |
* 流程实例对应的业务标识 |
|
34 |
* 例如说,请假 |
|
35 |
*/ |
|
36 |
private String businessKey; |
|
37 |
|
|
38 |
public BpmProcessInstanceStatusEvent(Object source) { |
|
39 |
super(source); |
|
40 |
} |
|
41 |
|
|
42 |
} |