feat(REQ-2616) - Starter 过滤实现增加调整
This commit is contained in:
parent
8ad27e017e
commit
fe1488f576
@ -14,12 +14,12 @@ import org.springframework.core.Ordered;
|
||||
public interface MessageNotificationEventHandler extends Ordered {
|
||||
|
||||
/**
|
||||
* 针对当前实现进行过滤
|
||||
* 针对当前接口的实现进行过滤, 为 true 时,往下执行下面的方法
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
default boolean filter(MessagePushDTO dto) {
|
||||
default boolean accept(MessagePushDTO dto) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -19,12 +19,12 @@ import org.springframework.core.Ordered;
|
||||
public interface ProcessActivityEventHandler extends Ordered {
|
||||
|
||||
/**
|
||||
* 针对当前实现进行过滤
|
||||
* 针对当前接口的实现进行过滤, 为 true 时,往下执行下面的方法
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
default boolean filter(ProcessActivityDTO dto) {
|
||||
default boolean accept(ProcessActivityDTO dto) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -16,12 +16,12 @@ import org.springframework.core.Ordered;
|
||||
public interface ProcessInstanceEventHandler extends Ordered {
|
||||
|
||||
/**
|
||||
* 针对当前实现进行过滤
|
||||
* 针对当前接口的实现进行过滤, 为 true 时,往下执行下面的方法
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
default boolean filter(ProcessInstanceDTO dto) {
|
||||
default boolean accept(ProcessInstanceDTO dto) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -16,12 +16,12 @@ import org.springframework.core.Ordered;
|
||||
public interface ProcessTaskEventHandler extends Ordered {
|
||||
|
||||
/**
|
||||
* 针对当前实现进行过滤
|
||||
* 针对当前接口的实现进行过滤, 为 true 时,往下执行下面的方法
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
default boolean filter(ProcessTaskDTO dto) {
|
||||
default boolean accept(ProcessTaskDTO dto) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user