Measurement Book Service
Overview
The measurement book service integrates estimate line item validation and workflow along with the measurement book registry.
Pre-requisites
A running DIGIT platform is needed to deploy the measurement service. Specifically, the following dependencies are needed:
DIGIT backbone services
Persister
Indexer
MDMS
Measurement Book Registry
Estimate
Contract
Project
HRMS
Localization
Workflow
Functionality
This service provides APIs to create, update and search for measurement service. Refer to the functional specifications here.
Deployment
The below variables should be configured for the measurement registry in the Helm environment file prior to deployment. The Helm environment file will be located under:
https://github.com/
{{ORG}}
/DIGIT-DevOps/deploy-as-code/helm/environments/
{{EnvironmentFile}}
.yaml
Refer to the sample here.
Add db-host,db-name,db-url,domain and all the digit core platform services configurations (Idgen, workflow,user etc.) in the YAML file.
Add the ‘egov-mdms-service’ related configuration to the respective environment YAML file. Make sure you change the gitsync.branch name.
Check the measurement-registry persister file is added to the
egov-persister.perister-yml-path
variable. If not, please add the way it's done here.Make sure to add the DB(Postgres and flyway) username & password in the respective environment secret yaml file. Follow the steps here.
Make sure to add the DIGIT core services-related secrets configured in the respective environment secret file. Follow the steps here.
Restart egov-mdms-service, egov-persister, egov-indexer, inbox, egov-workflow-v2, egov-accesscontrol and zuul after the above changes are performed.
Configuration
Configure MDMS
Configure actions, roles and role-action mappings from the table below. Follow the steps here.
MB_CREATOR
/measurement-service/v1/_create
/measurement-service/v1/_update
/measurement-service/v1/_search
/wms/measurement-service/_search
MB_VERIFIER
/measurement-service/v1/_update
/measurement-service/v1/_search
/wms/measurement-service/_search
MB_APPROVER
/measurement-service/v1/_update
/measurement-service/v1/_search
MB_VIEWER
/measurement-service/v1/_search
/wms/measurement-service/_search
EMPLOYEE_COMMON
/inbox/v2/_search
These must be translated into JSON in the role-action mapping module in MDMS.
Example - available here.
Configure Workflows
Measurement Service Workflow
The following workflow JSON needs to be put in the request body of the /egov-workflow-v2/egov-wf/businessservice/_create
API.
Configure Persister
Make sure that the file measurement-service-persister.yml is present in the configs
repository in the below location.
https://github.com/<YOUR ORGANISATION>/configs/tree/UNIFIED-DEV/works/egov-persister
Configure Indexer
Please make sure that the file measurement-service-indexer.yml is present in the configs
repository in the below location.
https://github.com/<YOUR ORGANISATION>/configs/tree/UNIFIED-DEV/works/egov-indexer
Make sure to restart MDMS, persister service and indexer service after adding the file at the above location.
Configure Inbox
In the MDMS repository, locate the inbox configuration file. Make sure the following JSON is added to the inbox configuration:
Last updated