houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
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 }