Overview

The objective of HRMS is to provide a service that manages all the employees enrolled in the system. HRMS provides extensive APIs to create, update and search the employees with attributes like assignments, service history, jurisdiction, etc. HRMS can be treated as a sub-set of the egov-user service, Every employee created through HRMS will also be created as a user in egov-user. 

Pre-requisites

Before you proceed with the documentation, make sure the following pre-requisites are met -

Key Functionalities

Following are the properties in the application.properties file in hrms service which is configurable.

Property

Value

Remarks

egov.hrms.employee.app.link

https://dev.digit.org/employee/user/login

This is the link to the mseva app, which differs based on the environment.

egov.hrms.default.pagination.limit

200

This is the pagination limit on search results of employee search, it can be set to any numeric value without decimals.

egov.hrms.default.pwd.length

10

This is the length of password to be generated at the time of employee creation. However, please ensure this is in sync with the egov-user pwd policy.

open.search.enabled.roles

SUPERUSER,ADMIN

This is a list of Role codes that are allowed to perform an open-search in hrms. 

kafka.topics.notification.sms

egov.core.notification.sms

Kafka Topic to push the sms request. Please ensure this is in sync with egov-notification-sms service.

kafka.topics.save.service

save-hrms-employee

Kafka topic to push the save request in hrms. Please ensure this in sync with the persister.

kafka.topics.update.service

update-hrms-employee

Kafka topic to push the update request in hrms. Please ensure this in sync with the persister.

egov.idgen.ack.name

hrms.employeecode

Key to be configured in Idgen alongwith the ID format to generate employee code.

egov.idgen.ack.format

EMP-[city]-[SEQ_EG_HRMS_EMP_CODE]

Format to be configured in ID gen to generate employee code.

Interaction Diagram

Configuration Details

Following are the list of masters required for HRMS: 

common-masters: 

egov-hrms masters:

access-control masters:

egov-location masters: 

persister configuration:

https://github.com/egovernments/configs/blob/qa/egov-persister/hrms-employee-persister.yml

Localization:

Create message to be sent on employee creation./ reactivation 

{
  "messages": [
    {
      "code": "hrms.employee.create.notification",
      "message": "Hi $employeename, Welcome to mSeva. Your profile has been successfully set-up : Username - $username Password - $password Visit your profile at $applink, Thank you.",
      "module": "egov-hrms",
      "locale": "en_IN"
    },
    {
            "code": "hrms.employee.reactivation.notification",
            "message": "Dear <Employee Name>,\nYour profile with employee Username <Username> has been activated on <date>. Your one-time password is <password>. Please change your password using the link below\n<link>",
            "module": "egov-hrms",
            "locale": "en_IN"
    }
  ]
}

Service Details

Details of all the entities involved:

a) Assignments: Every employee is assigned a list of assignments, every assignment is a designation provided to that employee for a given period of time. These designations are mapped to departments. This also includes marking the employee as HOD for that department if needed. An employee can also provide information on who does he report to.

b) Jurisdictions: A jurisdiction is an area of power for any employee. It can be a zone, ward, block, city, state, or country. Currently, jurisdiction is defined as a combination of Hierarchy type, Boundary Type, and the actual Boundary. However, in the current system, we are not validating these jurisdictions. This is being collected only for the sake of data.

c) Service History: Service history is the record of an employee's professional experience. It captures information about the location and period of work with the necessary order number. Information about the current work details is to be entered here.

d) Educational Details: Captures educational details of the employee. Captures information like Degree, Year of Passing, University, Specialization, etc as part of the educational details.

e) Departmental Tests: Captures details of the tests undertaken by the employee. Like the name of the test and year of passing.

f) Deactivation Details: Details of deactivation of the employee, which captures the reason for deactivation, period of deactivation, and other necessary details.

f) Reactivation Details: Details of reactivation of the employee, which captures the reason for reactivation, the effective date from when reactivation takes place, and other necessary details.

Uniqueness Constraints:

Notification:

Deployment Details

  1. Add mdms configs required for HRMS Service and restart mdms service.

  2. Deploy the latest version of egov-hrms Service.

  3. Add HRMS Service persister yaml path in persister configuration and restart persister service

  4. Add Role-Action mapping for API’s.

Integration

Integration Scope

The egov-hrms service is used to manage all the employees enrolled in the system. It is used to assign roles under multiple jurisdictions.

Integration Benefits

Steps to Integration

  1. To integrate, the host of egov-hrms-services module should be overwritten in the helm chart.

  2. egov-hrms/employees/_create should be added as the create endpoint for creating employees in the system

  3. egov-hrms/employees/_search should be added as the search endpoint. This method handles all requests to search existing employee records depending on different search criteria

  4. egov-hrms/employees/_update should be added as the update endpoint. This method is used to update employee details.

  5. egov-hrms/employees/_count should be added as count API to get a list of active and inactive employees present in the system.

Reference Docs

Doc Links

Title 

Link

API Swagger Documentation

Swagger Documentation

API List

Title 

Link

egov-hrms/employees/_create

https://www.getpostman.com/collections/c9d8ae63a10fac6fdd43

egov-hrms/employees/_update

https://www.getpostman.com/collections/c9d8ae63a10fac6fdd43

egov-hrms/employees/_search

https://www.getpostman.com/collections/c9d8ae63a10fac6fdd43

egov-hrms/employees/_count

https://www.getpostman.com/collections/c9d8ae63a10fac6fdd43

(Note: All the API’s are in the same postman collection therefore the same link is added in each row)