feature(improve) - 优化事件移除一些引擎内部常量
This commit is contained in:
parent
ae1a6fc445
commit
e5f1ce70c3
@ -6,6 +6,7 @@ import cn.axzo.workflow.core.service.ExtAxMqLogService;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import lombok.SneakyThrows;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.ListUtils;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -34,6 +35,7 @@ public class MqLogListener implements ApplicationListener<MqLogEvent> {
|
||||
if (!refreshProperties.getMqLogEnable()) {
|
||||
return;
|
||||
}
|
||||
ListUtils.emptyIfNull(refreshProperties.getSupportedMqLogProcessDefinitionKeys());
|
||||
switch (event.getEventType()) {
|
||||
case INSERT:
|
||||
insert(buildMqLogEntity(event));
|
||||
|
||||
@ -26,6 +26,8 @@ public class SupportRefreshProperties {
|
||||
|
||||
@Value("${workflow.mqLog.enable: false}")
|
||||
private Boolean mqLogEnable;
|
||||
@Value("${workflow.mqLog.supportedProcessDefinitionKeys:}")
|
||||
private List<String> supportedMqLogProcessDefinitionKeys;
|
||||
|
||||
@Value("${workflow.apiLog.filterApiType:}")
|
||||
private String filterApiType;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user