去年在做OA的时候使用activiti-5.22.0.0做为bpm的管理引擎,不过集成进来时候,在项目即将上线的时候发现activiti这个版本不支持事务。
所以在这里给出解决方案,希望给遇到小伙伴提供一种解决方法
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.3.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
<tx:advice id="activitiTxAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="notify*" propagation="REQUIRED" read-only="false" rollback-for="java.lang.Exception"/>
<tx:method name="delegate*" propagation="REQUIRED" read-only="false" rollbac

这篇博客介绍了在activiti-5.22.0.0版本中遇到的不支持事务的问题,并提供了一个详细的Spring配置解决方案,包括事务管理器、切面配置和processEngineConfiguration的设置,旨在帮助遇到相同问题的开发者。
最低0.47元/天 解锁文章
2695

被折叠的 条评论
为什么被折叠?



