Apply BPA
The BPA 'apply' is the major feature in BPA Module. It allows Stakeholder to create BPA Applications .
Every application is a part of the workflow.
Stepper 1 :
https://egov-micro-qa.egovernments.org/citizen/egov-bpa/apply?tenantId=pb.amritsar
All the drop down data are mapped through mdms response.
For to display MDMS data we have common container in UI Framework ( “getSelectField
“ ).
In BPA : We used common container for Application Type , Service Type , Risk Type , Occupancy Type and Sub Occupancy Type, Owner Type and Type of owner-Subtype .
Sample JSON for Structure Type and Sub Structure Type :
applicationType: getSelectField({
label: {
labelName: "Application Type",
labelKey: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL"
},
placeholder: {
labelName: "Select Application Type",
labelKey: "BPA_BASIC_DETAILS_APPLICATION_TYPE_PLACEHOLDER"
},
jsonPath: "BPA.applicationType",
sourceJsonPath: "applyScreenMdmsData.BPA.ApplicationType",
required: true,
gridDefination: {
xs: 12,
sm: 12,
md: 6
}
}),
jsonPath is used to store the data in specified path when clicking event triggers or on handleFieldChange.
sourceJsonPath is the path where the data is fetched to populate in the dropdown.
Mdms data :
Application Type data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/BPA/ApplicationType.json
Service Type data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/BPA/ServiceType.json.
Occupancy Type data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/BPA/OccupancyType.json
Sub Occupancy data is fetched from https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/BPA/SubOccupancyType.json
Mohalla Data - https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/amritsar/egov-location/boundary-data.json (For Amritsar)
Basic details is the first stepper of BPA :
The disable fields data is fetched once the Building Plan scrutiny number field is filled and made a search call on edcr-service.
Stepper 2 :
Here all details are fetched from the EDCR data ( calling edcr service in stepper 1).
Â
Â
Stepper 3 :
Â
Owner Type and Type of owner-Subtype - https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/OwnerShipCategory.json https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/common-masters/OwnerType.json
The owner data is fetched once the Mobile Number field is filled and made a search call on user-service.
Apply Footer
The Next and Previous buttons are configured this son file.
BPA create call is triggered on 3nd stepper’s Next button onclick().
NOC Search call is triggered after success of BPA Create.
Â
Stepper 4 :
Mdms data : https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/BPA/DocTypeMapping.json
The data formatting logic is as shown below. prepareDocumentsUploadData(state, dispatch);
in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-bpa-dev/src/ui-utils/commons.js
NOC Section :
Source Path : https://github.com/egovernments/frontend/blob/develop/web/rainmaker/dev-packages/egov-bpa-dev/src/ui-config/screens/specs/egov-bpa/noc.js
Â
MDMS Date: https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/NOC/DocumentTypeMapping.json
The data formatting logic is as shown below.
prepareNOCUploadData(state, dispatch)
and prepareNocFinalCards(state, dispatch)
in https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-bpa-dev/src/ui-utils/commons.js
Stepper 5:
This is the Review/Summary screen - https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-bpa-dev/src/ui-config/screens/specs/egov-bpa/summaryDetails.js
Update BPA API - bpa-services/v1/bpa/_update
and Update NOC API - /noc-services/v1/noc/_update
is called on SEND TO CITIZEN.
Success Screen :
Search-Preview :
To load search preview page egov-workflow-v2/egov-wf/process/_search?businessIds=PB-BP-2020-07-23-003475&history=true&tenantId=pb.amritsar
API should return workflow history.
The topmost card is mainly rendered using the workflow response.https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-workflow-dev/src/ui-molecules-local/TaskStatusComponents/index.js
View History Buttons gives the list of workflow actions performed on the application.
Â
Â
BPA Workflow :
Role | Action | Next State | Status |
---|---|---|---|
BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR | INITIATE | SEND_TO_CITIZEN | INITIATED |
BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR | SEND_TO_CITIZEN | CITIZEN_APPROVAL_PENDING | CITIZEN_APPROVAL_INPROCESS |
CITIZEN | SEND_TO_ARCHITECT | INPROGRESS | INPROGRESS |
BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR | APPLY | PENDING_APPL_FEE_PAYMENT | PENDING_APPL_FEE |
CITIZEN/BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR/SYSTEM_PAYMENT/CEMP | PAY | DOC_VERIFICATION_PENDING | DOC_VERIFICATION_INPROGRESS |
BPA_VERIFIER | FORWARD | FIELDINSPECTION_PENDING | FIELDINSPECTION_INPROGRESS |
BPA_FIELD_INSPECTOR | FORWARD | NOC_VERIFICATION_PENDING | NOC_VERIFICATION_INPROGRESS |
BPA_NOC_VERIFIER | FORWARD | PENDINGAPPROVAL | APPROVAL_INPROGRESS |
BPA_APPROVER | APPROVE | PENDING_SANC_FEE_PAYMENT | PENDING_SANC_FEE_PAYMENT |
CITIZEN/BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR/SYSTEM_PAYMENT/CEMP | PAY | APPROVED | APPROVED |
Â
API Call Role Action mapping:
S.No. | API | Action id | Roles |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
Â
NOC Workflow :
Role | Action | Next State | Status |
---|---|---|---|
BPA_ARCHITECT/BPA_ENGINEER/BPA_BUILDER/BPA_STRUCTURALENGINEER/BPA_TOWNPLANNER/BPA_SUPERVISOR | INITIATE | INPROGRESS | INITIATED |
BPA_VERIFIER/BPA_FIELD_INSPECTOR/BPA_NOC_VERIFIER | INPROGRESS | APPROVE | INPROGRESS |
FIRE_NOC_APPROVER | APPROVE | APPROVED | APPROVED |
API Call Role Action mapping:
S.No. | API | Action id | Roles |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
Â