houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.iailab.module.bpm.framework.flowable.core.listener.demo.exection;
 
import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;
 
/**
 * 类型为 class 的 ExecutionListener 监听器示例
 *
 * @author iailab
 */
@Slf4j
public class DemoDelegateClassExecutionListener implements JavaDelegate {
 
    @Override
    public void execute(DelegateExecution execution) {
        log.info("[execute][execution({}) 被调用!变量有:{}]", execution.getId(),
                execution.getCurrentFlowableListener().getFieldExtensions());
    }
 
}