fix: 修复监听器中使用fastjson序列化参数导致StackOverflowError问题
parent
3727c241b0
commit
c5a94aa6f9
|
|
@ -1,6 +1,5 @@
|
|||
package com.ruoyi.flowable.listener;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.flowable.common.engine.api.delegate.Expression;
|
||||
import org.flowable.engine.delegate.DelegateExecution;
|
||||
|
|
@ -32,6 +31,6 @@ public class FlowExecutionListener implements ExecutionListener {
|
|||
|
||||
@Override
|
||||
public void notify(DelegateExecution execution) {
|
||||
log.info("执行监听器:{}", JSON.toJSONString(execution));
|
||||
log.info("执行监听器:{}", execution);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
package com.ruoyi.flowable.listener;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.flowable.engine.delegate.TaskListener;
|
||||
import org.flowable.task.service.delegate.DelegateTask;
|
||||
|
|
@ -24,7 +23,7 @@ public class FlowTaskListener implements TaskListener{
|
|||
@Override
|
||||
public void notify(DelegateTask delegateTask) {
|
||||
|
||||
log.info("任务监听器:{}", JSON.toJSONString(delegateTask));
|
||||
log.info("任务监听器:{}", delegateTask);
|
||||
// TODO 获取事件类型 delegateTask.getEventName(),可以通过监听器给任务执行人发送相应的通知消息
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue