houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.bpm.framework.flowable.core.listener.demo.task;
H 2
3 import lombok.extern.slf4j.Slf4j;
4 import org.flowable.engine.delegate.TaskListener;
5 import org.flowable.task.service.delegate.DelegateTask;
6 import org.springframework.stereotype.Component;
7
8 /**
9  * 类型为 delegateExpression 的 TaskListener 监听器示例
10  *
11  * @author iailab
12  */
13 @Component
14 @Slf4j
15 public class DemoDelegateExpressionTaskListener implements TaskListener {
16
17     @Override
18     public void notify(DelegateTask delegateTask) {
19         log.info("[execute][task({}) 被调用]", delegateTask.getId());
20     }
21
22 }