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 String projectId; /** * 流程实例id */ private String processInsId; /** * 任务id */ private String taskId; /** * 任务key */ private String taskDefKey; /** * 任务名 */ private String taskName; /** * 事件类型 */ 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, String projectId, String processInsId, String taskId, String taskDefKey, String taskName,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.taskDefKey = taskDefKey; this.taskName = taskName; this.otherData = otherData; } }