dengzedong
2024-12-24 76743b009ca5ea67557fcab597b332f8d1947813
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
package com.iailab.module.bpm.framework.flowable.core.event;
 
import com.iailab.module.bpm.event.BpmProcessInstanceStatusEvent;
import lombok.AllArgsConstructor;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.validation.annotation.Validated;
 
import javax.validation.Valid;
 
/**
 * {@link BpmProcessInstanceStatusEvent} 的生产者
 *
 * @author iailab
 */
@AllArgsConstructor
@Validated
public class BpmProcessInstanceEventPublisher {
 
    private final ApplicationEventPublisher publisher;
 
    public void sendProcessInstanceResultEvent(@Valid BpmProcessInstanceStatusEvent event) {
        publisher.publishEvent(event);
    }
 
}