前言

Camunda提供了一套完整的接口,可以访问到引擎中所有的信息。所以 Camunda 可单独部署,从而与编程语言解耦。

文档地址 https://docs.camunda.org/manual/7.14/reference/rest/

image.png

Camunda 7.13 版本之后,API 路径有调整
image.png
自定义路径

  1. spring.jersey.application-path=myapplicationpath

依赖

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

示例

  1. 查询流程定义

http://localhost:8080/engine-rest/process-definition
image.png

  1. 查询用户

    http://localhost:8080/engine-rest/user
    image.png