【问题标题】:Camunda - where is your API?Camunda - 你的 API 在哪里?
【发布时间】:2021-10-06 07:38:59
【问题描述】:

我从教程中安装了一个 camunda https://github.com/berndruecker/camunda-on-pcf 并启动并运行

  1. 在本地主机(http://localhost:8080/app/cockpit/default/#/dashboard)
  2. 在我们的 PCF 上(https://our-private-pcf/app/cockpit/default/#/dashboard)李>

然后通过 Camunda 建模器制作了一个 BPMN 模型。

问题一:我是选择“Camunda Platform”还是“Camunda Cloud”的BPMN Diagram?

问题 2: 我必须为“REST Endpoint”(平台)或“Contact Point”(云自行管理)或“Cluster URL”(云 SaaS)输入哪个值?

我尝试了很多 a) localhost oder Cloud URL 和 b) 上下文根“/engine-rest/”或“/API/”或“/APP/”等的组合,但它们都不起作用。

感谢您的想法,问候

【问题讨论】:

    标签: api rest cloud bpmn camunda


    【解决方案1】:

    camunda 驾驶舱使用自己的内部 REST api。如果您还想公开外部 api,则必须包含rest-starter dependency

     <dependency>
         <groupId>org.camunda.bpm.springboot</groupId>
         <artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
         <version>...</version>
     </dependency>
    

    那么文档中提到的端点就会匹配。

    【讨论】:

    • Bernds pom.xml 中已经存在此依赖项。
    • 问题的核心是“starter-rest”在 Bernds 来源的项目中不起作用。如果您尝试像我一样在第一次接近时使用驾驶舱 API,那么您会发现在进行身份验证时遇到困难等等。最好重新开始并正确设置。谢谢简!
    【解决方案2】:

    好的,一天的惊叹会有所帮助。

    第一个问题:Bernds 教程安装了一个 Spring Boot Camunda,这意味着它是一个平台,而不是一个云解决方案,即使我将它安装到我的云中。

    第二个问题:API 上下文根不是文档中提到的示例。但是,如果您运行它:使用带有开发者插件的浏览器来观察网络流量。捆绑的 Web 应用程序“Cockpit”、“Tasklist”和“Admin”是使用属于该实例的 API 的 NodeJS 应用程序。

    Browser showing Camunda Cockpit and Firefox Developer Console

    在这种情况下,我的 API 网址是 http://localhost:8080/api/engine/engine/default/

    Camunda Modeler upload BPMN

    【讨论】:

      猜你喜欢
      • 2023-04-02
      • 1970-01-01
      • 2010-11-16
      • 2010-11-14
      • 1970-01-01
      • 1970-01-01
      • 2012-10-14
      • 2011-03-18
      • 1970-01-01
      相关资源
      最近更新 更多