Hello experts,
I have angular springboot microservice based application. My use case is -
- Employee applies for leave from UI (angular ui).
- Request is send to microservice
- Find the manager for given employee. Assign the request to him
- Manager approves request from ui (angular)
- 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.