feat(REQ-2616) - Starter 过滤实现增加调整

This commit is contained in:
wangli 2024-08-22 13:32:59 +08:00
parent 8ad27e017e
commit fe1488f576
4 changed files with 8 additions and 8 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}