update - REQ-2324-添加日志,job执行任务重试次数用完再钉钉通知
This commit is contained in:
parent
cad75b4100
commit
30ed177cdf
@ -53,6 +53,7 @@ public class ApproveErrorReporterEventListener implements BpmnAsyncJobEventListe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void notify(FlowableEvent flowableEvent) {
|
public void notify(FlowableEvent flowableEvent) {
|
||||||
|
log.info("ApproveErrorReporterEventListener-flowableEvent: {}", JSONUtil.toJsonStr(flowableEvent));
|
||||||
if (!(flowableEvent instanceof FlowableEntityExceptionEventImpl)) {
|
if (!(flowableEvent instanceof FlowableEntityExceptionEventImpl)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ import org.springframework.stereotype.Component;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.JOB_EXECUTION_FAILURE;
|
import static org.flowable.common.engine.api.delegate.event.FlowableEngineEventType.JOB_MOVED_TO_DEADLETTER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异步任务执行异常的扩展监听器
|
* 异步任务执行异常的扩展监听器
|
||||||
@ -33,7 +33,7 @@ public class ErrorReporterEventListener implements BpmnAsyncJobEventListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean support(FlowableEngineEventType eventType) {
|
public boolean support(FlowableEngineEventType eventType) {
|
||||||
return Objects.equals(JOB_EXECUTION_FAILURE, eventType);
|
return Objects.equals(JOB_MOVED_TO_DEADLETTER, eventType);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user