|
@@ -1,18 +1,20 @@
|
|
|
package org.dromara.workflow.api.domain.event;
|
|
package org.dromara.workflow.api.domain.event;
|
|
|
|
|
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
|
|
+import org.dromara.common.core.utils.SpringUtils;
|
|
|
|
|
+import org.springframework.cloud.bus.event.RemoteApplicationEvent;
|
|
|
|
|
|
|
|
import java.io.Serial;
|
|
import java.io.Serial;
|
|
|
-import java.io.Serializable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 流程办理监听
|
|
* 流程办理监听
|
|
|
*
|
|
*
|
|
|
* @author may
|
|
* @author may
|
|
|
*/
|
|
*/
|
|
|
-
|
|
|
|
|
@Data
|
|
@Data
|
|
|
-public class ProcessTaskEvent implements Serializable {
|
|
|
|
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
|
|
+public class ProcessTaskEvent extends RemoteApplicationEvent {
|
|
|
|
|
|
|
|
@Serial
|
|
@Serial
|
|
|
private static final long serialVersionUID = 1L;
|
|
private static final long serialVersionUID = 1L;
|
|
@@ -37,4 +39,7 @@ public class ProcessTaskEvent implements Serializable {
|
|
|
*/
|
|
*/
|
|
|
private String businessKey;
|
|
private String businessKey;
|
|
|
|
|
|
|
|
|
|
+ public ProcessTaskEvent() {
|
|
|
|
|
+ super(new Object(), SpringUtils.getApplicationName(), DEFAULT_DESTINATION_FACTORY.getDestination(null));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|