Flowable源码地址:https://github.com/flowable/flowable-engine
Flowable-6.7.2 源码注释地址:https://github.com/solojin/flowable-6.7.2-annotated
Mybatis事务,包路径:org.activiti.engine.impl.cfg.standalone
StandaloneMybatisTransactionContext独立MyBatis事务上下文
/**
* 独立MyBatis事务上下文
* 最终委托SqlSession实例对象完成事务管理
*
* @author Tom Baeyens
*/
public class StandaloneMybatisTransactionContext implements TransactionContext {
private static final Logger LOGGER = LoggerFactory.getLogger(StandaloneMybatisTransactionContext.class);
protected CommandContext commandContext;
protected Map<TransactionState, List<TransactionListener>> stateTransactionListeners;
public StandaloneMybatisTransactionContext(CommandContext commandContext) {
this.commandContext = commandContext;
}
@Override
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener) {
if (stateTransactionListeners == null) {
stateTransactionListeners = new HashMap<>();
}
List<TransactionListener