...
The service layer typically contains the following layers -
Validation Layer - All business validation logic should be added in this class. For example, verifying the values against the master data, ensuring non duplication of data etc.
In this guide, for creating the validation layer, the following steps should be followed -
...
*** NOTE: For the sake of simplicity the above mentioned validations have been implemented. Required validations will vary on case by case basis.
2. Enrichment Layer - This layer will enrich the request. System generated values like id, auditDetails etc. will be generated and added to the request.
...
*** NOTE: For the sake of simplicity the above mentioned enrichment methods have been implemented. Required enrichment will vary on case by case basis.
3. Integration - A separate class should be created for integrating with each dependent microservice. Only one method from that class should be called from the main service class for integration.
In this guide, we will be showcasing how we can integrate our microservices with other microservices like MDMS, IdGen, User and Workflow.
...