Flowable源码地址:https://github.com/flowable/flowable-engine
Flowable-6.7.2 源码注释地址:https://github.com/solojin/flowable-6.7.2-annotated
事务监听器,包路径:org.flowable.common.engine.impl.cfg
TransactionListener 事务监听器
/**
* 事务监听器
*
* @author Tom Baeyens
*/
public interface TransactionListener {
void execute(CommandContext commandContext);
}
ExecuteExecutionListenerTransactionListener 执行监听器事务监听器
/**
* 执行监听器事务监听器
* 调用执行监听器{@link ExecutionListener}的事务监听器{@link TransactionListener}。
*
* @author Joram Barrez
*/
public class ExecuteExecutionListenerTransactionListener implements TransactionListener {
protected TransactionDependentExecutionListener listener;
protected TransactionDependentExecutionListenerExecutionScope scope;
protected CommandExecutor commandExecutor;
public ExecuteExecutionListenerTransactionListener(TransactionDependentExecutionListener listener,
TransactionDependentExecutionListenerExecutionScope scope, CommandExecutor commandExecutor) {
this.listener = listener;
this.scope = scope;
this.commandExecutor = commandExecutor;
}
@Override
public void execute