如何将Camunda建模图部署到Camunda Tomcat中

时间:2019-02-20 15:07:35

标签: bpmn camunda

我正在尝试与Camunda建立BPMN工作流程。为此,我已经使用Camunda modeler绘制了图表。现在,我想在Camunda中打开此BPMN图。 Camunda的Tomcat已安装并正在运行,但是我无法在Camunda的Tomcat中上载/查找该图。我目前正在我的本地计算机上尝试此操作。

任何人都知道如何将BPMN图放入Camunda的Tomcat吗?

4 个答案:

答案 0 :(得分:1)

有两种方法可以将图表上载到BPMN引擎。

  1. 在Camunda Modeler中,菜单栏中有一个向上的箭头。您可以在此处指定引擎的运行位置以及 直接从建模者上传图。

      

    https://docs.camunda.org/get-started/quick-start/service-task/

  2. 如果您还有一些JavaDelegate类,则希望使用该类进行部署 您的图表,可以将所有这些内容打包到一个WAR文件中,并将其放入 在Tomcat的webapps文件夹中,然后 自动部署您的文件。

      

    https://docs.camunda.org/get-started/java-process-app/service-task/

提供的链接将引导您转到Camunda官方文档,其中详细介绍了所有这些内容。

答案 1 :(得分:0)

除了@MuffinMICHI描述的部署方式之外,您还可以通过REST API部署图表。您只需向/ engine-rest / deployment / create发出POST请求 您将Content-Type设置为:

application/x-www-form-urlencoded

您设置以下参数:

 deployment-name: <SOME NAME>
 deployment-source: <SOME NAME>
 data: <UPLOAD THE DIAGRAM HERE>
 diagram (optional): <UPLOAD IMAGE FOR DIAGRAM>

答案 2 :(得分:0)

a)您可以直接从建模器部署到服务器。 https://docs.camunda.org/get-started/quick-start/deploy/ 在最新版本中,该功能得到了进一步改进: https://blog.camunda.com/post/2019/10/camunda-modeler-3.4.0-released/

enter image description here 在本地设置中,如果使用预打包发行版中的一个,则使用其余端点http://localhost:8080/engine-rest;如果使用Spring boot,则使用http://localhost:8080/rest

b)流程和决策模型(bpmn,dmn)可以自动部署。例如,将文件放入 src / main / resources 文件夹(在默认的Spring引导设置中)将在启动期间自动部署。

c)还有其他自动部署配置选项:https://docs.camunda.org/manual/latest/user-guide/spring-framework-integration/deployment/

d)您可以使用REST-API(例如与Postman一起部署)。 https://docs.camunda.org/manual/latest/reference/rest/deployment/post-deployment/

示例:

https://github.com/rob2universe/camunda-rest-postman

https://forum.camunda.org/t/process-deployment-to-rest-api-through-postman/10630

答案 3 :(得分:0)

部署 Camunda 流程:-

<块引用>

https://docs.camunda.org/get-started/quick-start/deploy/

For local deployment from modeler to tomcat

Rest endpoint to deploy http://yourhost:yourport/rest(or /engine-rest)

如果您是第一次部署流程,也可以使用播放按钮进行部署。

camunda-spring-boot-starter 配置为默认使用 SpringProcessEngineConfiguration 自动部署功能。

https://docs.camunda.org/manual/7.9/user-guide/spring-boot-integration/process-applications/

相关问题