parent
779d6fe890
commit
7a9b965fcb
4 changed files with 0 additions and 108 deletions
@ -1,22 +0,0 @@ |
|||||||
package org.springblade.inspection.listener; |
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject; |
|
||||||
import lombok.extern.slf4j.Slf4j; |
|
||||||
import org.flowable.task.service.delegate.DelegateTask; |
|
||||||
import org.flowable.task.service.delegate.TaskListener; |
|
||||||
import org.springblade.core.tool.utils.ObjectUtil; |
|
||||||
|
|
||||||
/** |
|
||||||
* @author lqk |
|
||||||
* @date 2025-08-19 11:14 |
|
||||||
*/ |
|
||||||
@Slf4j |
|
||||||
public class AfterListener implements TaskListener { |
|
||||||
@Override |
|
||||||
public void notify(DelegateTask delegateTask) { |
|
||||||
if (ObjectUtil.isNotEmpty(delegateTask)) { |
|
||||||
log.error(JSONObject.toJSONString(delegateTask)); |
|
||||||
System.out.println(JSONObject.toJSONString(delegateTask)); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
@ -1,27 +0,0 @@ |
|||||||
package org.springblade.inspection.listener; |
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject; |
|
||||||
import lombok.extern.slf4j.Slf4j; |
|
||||||
import org.flowable.engine.delegate.JavaDelegate; |
|
||||||
import org.flowable.task.service.delegate.DelegateTask; |
|
||||||
import org.flowable.task.service.delegate.TaskListener; |
|
||||||
import org.springblade.core.tool.utils.ObjectUtil; |
|
||||||
import org.springblade.core.tool.utils.StringUtil; |
|
||||||
|
|
||||||
/** |
|
||||||
* 任务监听,监听任务的创建、分配、完成等事件 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-08-19 11:14 |
|
||||||
*/ |
|
||||||
@Slf4j |
|
||||||
public class FirstListener implements TaskListener { |
|
||||||
|
|
||||||
@Override |
|
||||||
public void notify(DelegateTask delegateTask) { |
|
||||||
if (ObjectUtil.isNotEmpty(delegateTask)) { |
|
||||||
log.error(JSONObject.toJSONString(delegateTask)); |
|
||||||
System.out.println(JSONObject.toJSONString(delegateTask)); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
@ -1,23 +0,0 @@ |
|||||||
package org.springblade.inspection.listener; |
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject; |
|
||||||
import lombok.extern.slf4j.Slf4j; |
|
||||||
import org.flowable.bpmn.model.FlowableListener; |
|
||||||
import org.flowable.task.service.delegate.DelegateTask; |
|
||||||
import org.flowable.task.service.delegate.TaskListener; |
|
||||||
import org.springblade.core.tool.utils.ObjectUtil; |
|
||||||
|
|
||||||
/** |
|
||||||
* @author lqk |
|
||||||
* @date 2025-08-19 11:14 |
|
||||||
*/ |
|
||||||
@Slf4j |
|
||||||
public class HandleListener implements TaskListener { |
|
||||||
@Override |
|
||||||
public void notify(DelegateTask delegateTask) { |
|
||||||
if (ObjectUtil.isNotEmpty(delegateTask)) { |
|
||||||
log.error(JSONObject.toJSONString(delegateTask)); |
|
||||||
System.out.println(JSONObject.toJSONString(delegateTask)); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
@ -1,36 +0,0 @@ |
|||||||
package org.springblade.inspection.listener; |
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject; |
|
||||||
import lombok.extern.slf4j.Slf4j; |
|
||||||
import org.flowable.engine.delegate.DelegateExecution; |
|
||||||
import org.flowable.engine.delegate.ExecutionListener; |
|
||||||
import org.flowable.engine.delegate.JavaDelegate; |
|
||||||
import org.flowable.engine.delegate.TaskListener; |
|
||||||
import org.flowable.task.service.delegate.DelegateTask; |
|
||||||
import org.springblade.core.tool.utils.ObjectUtil; |
|
||||||
|
|
||||||
/** |
|
||||||
* 执行监听,针对整个流程实例的事件监听器,它可以监听流程实例启动、结束、活动开始、活动结束、连线选择等事件 |
|
||||||
* |
|
||||||
* @author lqk |
|
||||||
* @date 2025-08-19 11:14 |
|
||||||
*/ |
|
||||||
@Slf4j |
|
||||||
public class StartListener implements ExecutionListener { |
|
||||||
|
|
||||||
// @Override
|
|
||||||
// public void execute(DelegateExecution execution) {
|
|
||||||
// if (ObjectUtil.isNotEmpty(execution)) {
|
|
||||||
// log.error(JSONObject.toJSONString(execution));
|
|
||||||
// System.out.println(JSONObject.toJSONString(execution));
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override |
|
||||||
public void notify(DelegateExecution execution) { |
|
||||||
if (ObjectUtil.isNotEmpty(execution)) { |
|
||||||
log.error(JSONObject.toJSONString(execution)); |
|
||||||
System.out.println(JSONObject.toJSONString(execution)); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue