Could not update Flowable database schema: unknown version from database: ‘6.6.0.0‘
运行项目报错Unsatisfied dependency expressed through field 'repositoryService'; 提示无法注入repositoryService,再往下看报错信息提示nested exception is org.flowable.common.engine.api.FlowableException: Could not update Flowable database schema: unknown version from database: '6.6.0.0',这个问题是由于使用不同版本的flowable-ui连接数据库导致flowable数据库中版本信息发生变化,也就是flowable的jar包中数据库版本与act_ge_property表和act_id_property表中的version信息不一致。
首先我们看下jar包对应的数据库版本信息,在maven导入的lib包中,找到
打开你对应数据库的sql,如下
可以看到版本信息为6.5.0.6,因此,修改上面两张表的信息,如下


然后,再次启动项目,会发现报错Found v5 process definitions that are the latest version. Enable the flowable5CompatibilityEnabled,如果想恢复流程运行的话,只需要找到act_re_deployment表,将行数据ENGINE_VERSION的值从V5改成对应的6.5.0.6即可
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)