潘志宝
2024-11-21 d338b50afd6504a9676f0a26b3ecbcc844483e7c
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.bpm.framework.flowable.core.event;
H 2
3 import com.iailab.module.bpm.event.BpmProcessInstanceStatusEvent;
4 import lombok.AllArgsConstructor;
5 import org.springframework.context.ApplicationEventPublisher;
6 import org.springframework.validation.annotation.Validated;
7
8 import javax.validation.Valid;
9
10 /**
11  * {@link BpmProcessInstanceStatusEvent} 的生产者
12  *
13  * @author iailab
14  */
15 @AllArgsConstructor
16 @Validated
17 public class BpmProcessInstanceEventPublisher {
18
19     private final ApplicationEventPublisher publisher;
20
21     public void sendProcessInstanceResultEvent(@Valid BpmProcessInstanceStatusEvent event) {
22         publisher.publishEvent(event);
23     }
24
25 }