Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eyrafabdullayev/camunda-rest-api
The main aim of that demo application is to give an example that how the Camunda Rest API works.
https://github.com/eyrafabdullayev/camunda-rest-api
camunda-bpm camunda-rest-api spring spring-cloud-vault spring-security spring-web
Last synced: 18 days ago
JSON representation
The main aim of that demo application is to give an example that how the Camunda Rest API works.
- Host: GitHub
- URL: https://github.com/eyrafabdullayev/camunda-rest-api
- Owner: eyrafabdullayev
- Created: 2020-11-09T19:41:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T05:26:40.000Z (about 4 years ago)
- Last Synced: 2024-11-05T21:31:49.456Z (2 months ago)
- Topics: camunda-bpm, camunda-rest-api, spring, spring-cloud-vault, spring-security, spring-web
- Language: Java
- Homepage:
- Size: 386 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Camunda Rest API
The main purpuse of that application is to give an example that how the Camunda Rest API works. More about loot up at (https://docs.camunda.org/manual/7.14/reference/rest/) [https://docs.camunda.org/manual/7.14/reference/rest/]
## About
1. First you have to deploy your process.bpmn file. To do that i give an example below. For more about take look up at (https://docs.camunda.org/manual/7.14/reference/rest/deployment/post-deployment/) [https://docs.camunda.org/manual/7.14/reference/rest/deployment/post-deployment/]
![deployment](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/deploy2.png)But as you know that we also have used JWT Token to access the resources, for that i have to create and send it with request header.
![authenticate](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/authentication.png)
then to do that select Bearer Token as Type and add the given token.
![access token](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/deploy.png)2. After that you have to send a request to start that process by id. I have already given an example below. For more about take look up at (https://docs.camunda.org/manual/7.14/reference/rest/process-definition/post-start-process-instance/) [https://docs.camunda.org/manual/7.14/reference/rest/process-definition/post-start-process-instance/]
![starting the process](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/start.png)
And also have to send access token.
![access token](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/start2.png)Then Service tast will have been completed and a request will been sended to refresh the current token. If the auth_token variable is empty or not found the exception will be raise. Else the process will be complete successfully.
4. And i have also used Spring Cloud Vault to secure and store some of the properties or secrets. For that you have to start vault server and add that properties as i have already shown below.![vault setting](https://github.com/eyrafabdullayev/camunda-rest-api/blob/master/screenshots/vault.png)
## Running
$ docker run -it -p 8080:8080 eyrafabdullayev/camunda-rest-api:latest