org.activiti.api.runtime.shared.UnprocessableEntityException


報錯原因

啟動流程實例時出現org.activiti.api.runtime.shared.UnprocessableEntityException: Process definition with the given id:‘zx:1:70693c00-39e9-11eb-83a7-00ff1ec9ac8e’ 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.

 

解決方法

  1. 在resources目錄下創建default-project.json文件
{
  "createdBy": "zl",
  "creationDate": "2021-01-19",
  "lastModifiedBy": "qa-modeler-1",
  "lastModifiedDate": "",
  "id": "c519a458-539f-4385-a937-2edfb4045eb9",
  "name": "project",
  "description": "",
  "version": "1"
}
  1. 在application.yml文件中添加如下內容
project:
  manifest:
    file:
      path: classpath:/default-project.json

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM