xiangpei
2025-02-12 1a983833a7af79d5ab224fedc627b737e955e9d7
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 com.ycl.event.event;
 
import com.ycl.common.enums.business.ProcessLogEventTypeEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;
 
 
/**
 * 转办事件定义
 *
 * @author:xp
 * @date:2025/1/16 15:04
 */
@Getter
@Setter
public class TaskLogEvent extends ApplicationEvent {
    /**
     * id
     */
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 项目id
     */
    private Long projectId;
 
    /**
     * 流程实例id
     */
    private String processInsId;
 
    /**
     * 任务id
     */
    private String taskId;
 
    /**
     * 事件类型
     */
    private ProcessLogEventTypeEnum eventType;
 
    /**
     * 其它数据
     * @see com.ycl.domain.json
     */
    private Object otherData;
 
    /**
     * 构造
     *
     * @param source 传this即可
     * @param projectId 项目id
     * @param processInsId 流程实例id
     * @param taskId 任务id
     * @param otherData 其它数据
     */
    public TaskLogEvent(Object source,Long id,Long userId, Long projectId, String processInsId, String taskId, ProcessLogEventTypeEnum eventType, Object otherData) {
        super(source);
        this.id = id;
        this.userId = userId;
        this.projectId = projectId;
        this.processInsId = processInsId;
        this.eventType = eventType;
        this.taskId = taskId;
        this.otherData = otherData;
    }
}