潘志宝
5 天以前 6d75723f3e3bd43895db2470bc5fabb2314dbe8b
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);
    }
 
}