camunda_20_rest_client
rest client
-
rest client 是什么
除了內置流程引擎應用, 有時候我們其他應用也需要訪問 camunda platform, 這時候可以通過 camunda rest API實現, 為了簡化rest api的調用, 開源社區已經有了兩個 rest client 包. -
能做什么:
- History 查詢
- 部署
- 流程流轉控制
-
不能做什么:
- 不支持 JavaDelegate
- 不支持 ExecutionListener 和 TaskListener
選擇1: camunda-platform-7-rest-client-java 包
- Http 組件: okhttp
- 要求: Java 8
- 主頁 https://github.com/camunda-community-hub/camunda-platform-7-rest-client-java
<dependency>
<groupId>org.camunda.community</groupId>
<artifactId>camunda-engine-rest-client-openapi-springboot</artifactId>
<version>7.17.0</version>
</dependency>
選擇2: camunda-platform-7-rest-client-spring-boot 包
- Http 組件: feign
- 要求: Java 11
- 主頁: https://github.com/camunda-community-hub/camunda-platform-7-rest-client-spring-boot
<dependency>
<groupId>org.camunda.community.rest</groupId>
<artifactId>camunda-platform-7-rest-client-spring-boot-starter</artifactId>
<version>${project.version}</version>
</dependency>

浙公網安備 33010602011771號