【问题标题】:Why i am getting 404 error when calling camunda rest api为什么我在调用 camunda rest api 时收到 404 错误
【发布时间】:2023-03-17 08:10:01
【问题描述】:

当调用camunda的rest engine api取消这个url

获取http://localhost:8081/orchestrator/engine-rest/process-definition/finance-process:1:73c2ea9d-15f7-11e9-9484-00155d076c61

我收到 404。请您帮忙找出我缺少的东西吗?

同样的事情: http://localhost:8081/orchestrator/rest/engine/process-definition/finance-process:1:73c2ea9d-15f7-11e9-9484-00155d076c61

我已将其余 api 依赖项添加到我的 pom 中

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

当直接调用引擎时,我得到了资源:

http://localhost:8081/orchestrator/api/engine/engine/default/process-definition/finance-process:1:73c2ea9d-15f7-11e9-9484-00155d076c61

当使用 spring boot actuator 检查映射的 url 时,我找不到 /engine-rest,所以我肯定在配置中遗漏了一些东西。

致电http://localhost:8081/orchestrator/rest/engine 返回

[
    {
        "name": "default"
    }
]

感谢您的帮助

【问题讨论】:

    标签: spring-boot camunda


    【解决方案1】:

    我刚刚错过了 url 中的引擎名称 {default} :

    添加它解决了我的错误:

    http://localhost:8081/orchestrator/rest/engine/default/process-definition/finance-process:1:73c2ea9d-15f7-11e9-9484-00155d076c61/xml
    

    【讨论】:

      猜你喜欢
      • 2015-10-02
      • 2016-03-28
      • 1970-01-01
      • 2015-04-12
      • 2012-06-16
      • 1970-01-01
      • 2019-06-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多