英文:
Camunda load BPMN XML from database
问题
能否在Camunda中从数据库加载BPMN XML,而不是将XML与Web应用程序中的文件一起使用?
我们希望能够动态添加新的工作流,而不是部署带有定义的新WAR文件。想法是将其添加到数据库中,并通知Web应用程序有新的定义。
这样做有何意义!
谢谢,
Scott。
英文:
Is it possible to load BPMN XML from a database in Camunda rather than having the XML in files in with the web app?
We want to be able to dynamically add new workflows rather than deploy a new WAR with the definitions the idea is add to the database and notify the webapp there are new definitions.
How this makes sense!
Thanks,
Scott.
答案1
得分: 4
Camunda将模型/部署版本存储在数据库中。将文件捆绑到部署中只是(自动)部署流程模型的一种方式。
如果启用了自动部署,并且模型有更改,那么在启动期间流程模型将作为新版本部署到数据库中。
> "isScanForProcessDefinitions:如果将此属性设置为true,则会自动扫描流程应用程序的类路径以查找可部署的资源。可部署的资源必须以.bpmn20.xml,.bpmn,.cmmn11.xml,.cmmn,.dmn11.xml或.dmn结尾。"
https://docs.camunda.org/manual/latest/user-guide/process-applications/the-processes-xml-deployment-descriptor/
在任何(运行)时候,您都可以通过REST或Java API(RepositoryService)部署新的模型版本。
例如,您可以使用Camunda模型设计器部署新版本:
https://docs.camunda.org/get-started/quick-start/deploy/
或者使用curl或postman等方法。
另请参阅:
https://docs.camunda.org/manual/latest/webapps/cockpit/deployment-view/
https://docs.camunda.org/manual/latest/user-guide/process-engine/process-versioning/
英文:
Camunda stores the model/deployment versions in the DB. Bundling the file in the deployment is just one way of (auto) deploying a process model.
If auto deployment is enabled and the model has changes then the process model will be deployed as a new version to the database during startup.
> "isScanForProcessDefinitions: if this property is set to true, the
> classpath of the process application is automatically scanned for
> deployable resources. Deployable resources must end in .bpmn20.xml,
> .bpmn, .cmmn11.xml, .cmmn, .dmn11.xml or .dmn."
https://docs.camunda.org/manual/latest/user-guide/process-applications/the-processes-xml-deployment-descriptor/
At any (run)time you can deploy a new model version via REST or Java API (RepositoryService).
For instance you can use the Camunda modeler to deploy a new version:
https://docs.camunda.org/get-started/quick-start/deploy/
or for instance curl or postman.
Also see:
https://docs.camunda.org/manual/latest/webapps/cockpit/deployment-view/
https://docs.camunda.org/manual/latest/user-guide/process-engine/process-versioning/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论