https://documentation.flowable.com/latest/develop/dbs/overview
Run application and open localhost:8081 to access swagger UI
Step 1: create-vacation-request
curl -X 'POST' \
'http://localhost:8081/api/vacation/create-vacation-request' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"employeeName": "Ganesh",
"numberOfDays": 10,
"vacationPurpose": "Nepal Trekking"
}'
Step 2: fetch tasks for group ( MANAGER)
curl -X 'GET' \
'http://localhost:8081/api/vacation/fetch/MANAGER' \
-H 'accept: */*'
Step 3: claim tasks for a MANAGER user (uses task id from Step 2)
curl -X 'POST' \
'http://localhost:8081/api/vacation/claim/1fcbd315-dc71-11ed-83b6-02423debb37c/MGR_BOB' \
-H 'accept: */*' \
-d ''
Step 4: /review-vacation-request/{taskId} - approve (uses task id from Step 2)
curl -X 'POST' \
'http://localhost:8081/api/vacation/review-vacation-request/1fcbd315-dc71-11ed-83b6-02423debb37c' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{ "vacationApproved": true }'
Step 1: create-vacation-request
Step 2: fetch tasks for group ( MANAGER)
Step 3: claim tasks for a MANAGER user
Step 4: /review-vacation-request/{taskId} - deny
Step 5: fetch tasks for group ( EMPLOYEE)
Step 6: claim tasks for a that EMPLOYEE user
Step 7: /update-vacation-request/{taskId}
Step 8: claim tasks for a MANAGER user
Step 9: /review-vacation-request/{taskId} - approve
Simple Endpoint to start the vacation request
Endpoint to list user tasks (dummy user to begin with)
Manager - approve/reject with comment
Employee - appeal or re-request
Mock email job