Home > database >  Camunda - where is your API?
Camunda - where is your API?

Time:10-08

I installed a camunda from the tutorial https://github.com/berndruecker/camunda-on-pcf and got it up and running

  1. at localhost (http://localhost:8080/app/cockpit/default/#/dashboard)
  2. on our PCF (https://our-private-pcf/app/cockpit/default/#/dashboard)

Then a made a BPMN model via Camunda modeler.

Question 1: Do i choose BPMN Diagram for "Camunda Platform" or for "Camunda Cloud"?

Question 2: Which value do I have to enter for "REST Endpoint" (Platform) or "Contact Point" (Cloud Self Managed) or "Cluster URL" (Cloud SaaS)?

I tried a lot of combinations of a) localhost oder Cloud URL and b) context root "/engine-rest/" or "/API/" or "/APP/" and so on but none of them works.

Thanks for your thoughts, Regards

CodePudding user response:

Ok, one day of marveling helps.

First question: Bernds tutorial installs a Spring Boot Camunda and that meens it is a platform, not a cloud solution even if I install it into my cloud.

Second question: the API context root is none of the examples mentioned in documentation. But if you have it up an running: use a browser with developer plugin an watch network traffic. The bundeled web applications "Cockpit", "Tasklist" and "Admin" are NodeJS applications that use the API belonging to this instance.

Browser showing Camunda Cockpit and Firefox Developer Console

In this case my URL to API is http://localhost:8080/api/engine/engine/default/

Camunda Modeler upload BPMN

CodePudding user response:

The camunda cockpit uses its own internal REST api. If you additionally want to expose the external api, you must include the rest-starter dependency:

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

Then the endpoints mentioned in the docs will match.

  • Related