dengzedong
2024-12-24 aa0382e44311f9f7e62a688c8fcaa9c69a512e0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.iailab.module.bpm.framework.flowable.core.listener.demo.task;
 
import lombok.extern.slf4j.Slf4j;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;
 
/**
 * 类型为 expression 的 TaskListener 监听器示例
 *
 * @author iailab
 */
@Slf4j
@Component
public class DemoSpringExpressionTaskListener {
 
    public void notify(DelegateTask delegateTask) {
        log.info("[execute][task({}) 任务监听器(spring表达式)被调用]", delegateTask.getId());
    }
 
}