Camunda: http://localhost:8080
user: admin
pass: admin
http://localhost:8080/cities (POST|PUT|GET|DELETE)
http://localhost:8080/customers (POST|PUT|GET|DELETE)
Some Camunda Processes are started here.
printHello.bpmn
checkWeather.bpmn
createCustomer.bpmn
createCitySubProcess.bpmn
asyncCreateCustomer.bpmn
CustomerController Allows you to start Camunda Process to create new users Sync and Async
curl -X POST \
http://localhost:8080/async-create-customer \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"customerName": "Customer Name",
"cityName": "City Name"
}'
curl -X POST \
http://localhost:8080/create-customer \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"customerName": "Customer Name",
"cityName": "City Name"
}'
IncidentController List the incidents
To simulate a incident, try use this curl:
curl -X POST \
http://localhost:8080/async-create-customer \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"customerName": "Customer1",
"cityName": "invalid"
}'
Then:
curl -X GET \
http://localhost:8080/incidents \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json'
JobController Allows you to restart Jobs that fail. Check IncidentController
Get the JobId and ExecutionId from incidents and restart the job fixing the cityName.
curl -X PUT \
http://localhost:8080/jobs/96a54d09-a232-11e8-bca8-acde48001122/retry/1 \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-d '{
"executionId": "d65b1ce6-a232-11e8-bca8-acde48001122",
"variables": {
"cityName": "new city name"
}
}'
ProcessController Restart Process
Connecting to H2: http://localhost:8080/h2-console/login.do
url:: jdbc:h2:mem:testdb
user: sa
pass: