ativitit开发流程避坑指南

最近公司有工作流需求,但是架构师要求用最新的activiti7 做测试流程及其开发
发现选择版本容易出现这样那样的问题

 <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.activiti.dependencies</groupId>
                <artifactId>activiti-dependencies</artifactId>
                <version>${activiti-dependencies.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>
        </dependencies>
    </dependencyManagement>
<activiti-dependencies.version>7.1.0.M6</activiti-dependencies.version>

<<坑>>当启动流程时,会曝出类似这样的错误
Process definition with the given id:‘process-7c7bee14-9383-408e-a594-460cbfd13724:1:4’ belongs to a different application version.
解决方案摘自别处
The new logic will be used when a project manifest file is set via the property project.manifest.file.path. Here is an example. All the versions of process definitions will be bumped up when the version of project changes inside the manifest file.
翻译过来,新的逻辑会被使用当一个工程的mainifest文件被project.mainifest.file.path属性设定后。所有的流程定义的版本都会被改变当mainifest文件里的工程版本被改变时。
OK,说的很清楚了,在resource目录下加上default-project.json文件,然后在application.properties文件里指定project.manifest.file.path属性即可。(貌似没有卵用)

目前发现有一个版本可用 不会出现此问题<activiti-dependencies.version>7.1.123</activiti-dependencies.version>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值