Business process with external interface

Hello experts,

I have angular springboot microservice based application. My use case is -

  1. Employee applies for leave from UI (angular ui).
  2. Request is send to microservice
  3. Find the manager for given employee. Assign the request to him
  4. Manager approves request from ui (angular)
  5. Workflow completes

Step 2 should initiate the workflow. Could you suggest how this should me modeled.

@Manish_Pandey Below are the some steps:

  • Embed the camunda engine (including rest dependency) in the microservice.

  • When submitting the form based on angular ui, invoke the camunda rest api in order to start the approval workflow process.

  • Implement the delegates/listeners to wrap the logic of identifying the manager to approve the request.

  • Assign the task to the manager using task listener, so when task is created it will be assigned to that person.

  • Then invoke the /task api to fetch the assigned tasks and complete the task by invoking /complete rest api from angular ui.