Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 6.87 KB

File metadata and controls

81 lines (49 loc) · 6.87 KB
description
Water and Sewerage modify application feature for employees - technical implementation doc

Employee: Modify Application Details

Objective: Provide employees with specific workflow actions.

The same screen is used for both application details and to modify application details. The page provides the details of these workflows based on the conditions.

Workflow Details

Modify Application Details

Clicking on the Application Number in the inbox/search screen/connection search routes users to the application details screen. A search call is made before rendering the screen and details are populated based on the search response.

Modify Application Details Screen

Timeline View:

Downloads

Water & Sewerage Workflow Table

Role Action Next State Status
Citizen/ Counter Employee/WS_CEMP/ SW_CEMP INITIATE INITIATED INITIATED
WS_APPROVER / SW_APPROVER VERIFY &FORWARD PENDINGAPPROVAL Pending for APproval
WS_APPROVER / SW_APPROVER APPROVE Approved Approved
WS_APPROVER / SW_APPROVER REJECT Rejected Rejected

Implementation Details

Hook details for application details search:

  let { isLoading, isError, data: applicationDetails, error } = Digit.Hooks.ws.useWSModifyDetailsPage(t, tenantId, applicationNumber, serviceType, userInfo, { privacy: Digit.Utils.getPrivacyObject() });

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ModifyApplicationDetails.js

It is common for all modules, find the path here: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/index.js

Method Reference:

const applicationDownloadObject = { order: 3, label: t("WS_APPLICATION"), onClick: handleDownloadPdf, };

File Path: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/ws/src/pages/employee/ModifyApplicationDetails.js

Localisation Details

Localisation keys are added in the ‘rainmaker-ws’ locale module.

Water & Sewerage Workflow:

Role Action Next State Status
Citizen/ Counter Employee/WS_CEMP/ SW_CEMP INITIATE INITIATED INITIATED
WS_APPROVER / SW_APPROVER VERIFY &FORWARD PENDINGAPPROVAL Pending for APproval
WS_APPROVER / SW_APPROVER APPROVE Approved Approved
WS_APPROVER / SW_APPROVER REJECT Rejected Rejected

Employee Roles and Credentials: The login credentials and details are available in the document here:DIGIT Login Credentials

API Call Role Action Mapping

S.NoAPIAction IDRoles
12/ws-calculator/waterCalculator/_estimate and /sw-calculator/sewerageCalculator/_estimate

1966,

1967

WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK

1/access/v1/actions/mdms/_get870
13/egov-hrms/employees/_search1752
4/egov-workflow-v2/egov-wf/businessservice/_search1743EMPLOYEE
9/filestore/v1/files/url1528EMPLOYEE
3/localization/messages/v1/_search1531
7/property-services/property/_search1897PT_CEMP,PT_DOC_VERIFIER,PT_FIELD_INSPECTOR,PT_APPROVER
6/sw-services/swc/_search1940SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK
11/sw-services/swc/_update1939SW_CEMP,SW_DOC_VERIFIER,SW_FIELD_INSPECTOR,SW_CLERK
2/user/_search604
5/ws-services/wc/_search1900WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK
10/ws-services/wc/_update1901WS_CEMP,WS_DOC_VERIFIER,WS_FIELD_INSPECTOR,WS_APPROVER,WS_CLERK

Employee Roles and Credentials: The login credentials and details are available in the document here:DIGIT Login Credentials