W&S-UI Technical Document
List of configurations need to updated so that W&S UI can display the information / provide access to the logged in User.
Types of Roles & Access Details
MDMS configurations
PDF Configurations
WorkFlow Configurations
Egov-Searcher Configurations
Type of Roles & Access Details
For Water:
WS_CEMP
WS_DOC_VERIFIER
WS_FIELD_INSPECTOR
WS_APPROVER
WS_CLERK
For Sewerage:
SW_CEMP
SW_DOC_VERIFIER
SW_FIELD_INSPECTOR
SW_APPROVER
SW_CLERK
To configure the module cards in the inbox use below Json.
Role-actions mapping is added in below file:
{
"rolecode": "WS_CEMP",
"actionid": 1899
,
"actioncode": "",
"tenantId": "pb"
}
For every action object added in actions-test.json , we have to add specific roles who can access those added items in roleactions.json, where id will become the mapping key.
rolecode will be the roles of Employee or citizen.
Employee Inbox :
For any Employee, Inbox will be visible only if its configured in mdms.
2. MDMS Configuration
All BusinessService details and W&S specific mdms data.
https://github.com/egovernments/egov-mdms-data/tree/master/data/pb/ws-services-masters
https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ws-services-masters/Documents.json -Documents to be uploaded
https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/uiCommonPay.json
https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ws-services-masters/waterSource.json - WaterSource and subsource to be uploaded.
For propertyType,propertyUsageType,propertySubUsageType we took mdms from propertytax module.
https://github.com/egovernments/egov-mdms-data/tree/master/data/pb/PropertyTax
3. PDF Configurations at UI
https://github.com/egovernments/configs/tree/master/pdf-service/data-config
https://github.com/egovernments/configs/tree/master/pdf-service/format-config
4. Workflow Configurations
Assign above action to WS roles. This action is mainly to enable Workflow Inbox.
All the workflow API should be given access to all WS roles in https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/ACCESSCONTROL-ROLEACTIONS/roleactions.json
Front End Configurations :
Change the state level tenantId in /frontend/web/rainmaker/packages/employee/.env
REACT_APP_DEFAULT_TENANT_ID=pb
Point to specific environment you want to test on.
"proxy": "https://egov-micro-dev.egovernments.org/",