DIGIT Docs
Microplanning 0.2
  • DIGIT Knowledge Base
  • Local Governance
Microplanning 0.2
  • Introducing Microplanning
    • Release Notes
      • v0.2 Release Notes
        • Release Checklist
        • Technical Release Summary
        • Master Data Management Service (MDMS) and Configuration updates
        • Service Builds
        • UI/UX Audit
  • PRODUCT SPECIFICATION
    • User Manual
    • Product Requirement Document
      • SOPs
        • Guidelines
  • TECHNOLOGY
    • Architecture
      • High Level Design
      • Low Level Design
        • Plan Management
        • Census Management
        • Microplanning UI
          • System Admin Flow
          • Population Data Approval
          • Facility Catchment Mapping
          • Microplan Estimation Approval
      • Services
        • HCM Microplan Web
          • User Interface Design
          • Set Up Microplan
            • Microplan Details
            • Boundary Selection
            • Data Management
            • Data for Assumptions and Formulae
            • Microplan Assumptions
            • Formula Configuration
            • User Tagging
            • Summary Screen
          • User Management
            • Bulk User Create
            • Download Users Credentials
          • Supervisor Flows
            • User Interface Design
            • My Microplan
            • Select Activity
            • Validate And Approve Population Data
              • Village Details
            • Assign Facility To Villages
              • Village Assignment And Unassignment to Facility
            • Validate And Approve Microplan Estimation
          • Open Microplans: System Admin
            • Draft Flow
    • Specification
      • Plan Service
      • Resource Generator Service
      • Census Service
  • SETUP
    • Installation
    • Configuration
      • Advanced Configurations
    • QA Test Cases
    • Performance Testing
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Overview:
  • Flow Summary:
  • Implementation:

Was this helpful?

Export as PDF
  1. TECHNOLOGY
  2. Architecture
  3. Services
  4. HCM Microplan Web
  5. Open Microplans: System Admin

Draft Flow

The draft flow enables admins to edit microplans. When a user reopens a microplan via the microplan search, it loads at the last edited page.

Overview:

Flow Summary:

  1. Edit Microplans: Admins edit the microplan, which redirects toemployee/microplan/setup-microplan?key=8&microplanId=c4cb8a1b-ef4f-4998-afe4-5dd0432c1&campaignId=ef3f044f-047f-4eb5-adb1-5dbc92507461 (sample URL).

  2. User Edits: Users update details such as data management, boundary selection, and user-tagging.

  3. Save Changes: Changes are saved.

  4. Reopen Microplan: When reopened, the microplan loads the last edited page for further edits.

Implementation:

  1. Redirection:When the user clicks "Edit Microplan," they are redirected to the following URL:

/employee/microplan/setup-microplan?key=${resolvedKey}&microplanId=${row.id}&campaignId=${row.campaignDetails.id}

row represents plan object

  1. Retrieving Last Edited Screen: The last edited screen is retrieved from the additionalDetails field in the /plan-service/config/search response.

  2. User Input: The user fills in the required details on the redirected page. The input is stored in totalForm data, which holds the input as key-value pairs.

  3. Updating the Plan: The totalForm data is used to update the plan object. The useCreateUpdatePlanProject hook is utilized to update the appropriate attributes of the plan based on the current screen. The updated plan object is then sent to /plan-service/config/update. Primarily, the additional key is updated to ensure that the user lands on the last edited page during subsequent edits.

  4. Campaign Object Update: For boundary and microplan details pages, the campaign object is also updated. The updated campaign object is sent to /project-factory/v1/project-type/update.

Endpoint
Type of Request
Payload

/plan-service/config/search

POST

{ "PlanConfigurationSearchCriteria": { "tenantId": "mz", "id": "c4cb8a1b-ef4f-4998-afe4-5dd0432c11a2" } }

/plan-service/config/_update

POST

[ { "id": "c4cb8a1b-ef4f-4998-afe4-5dd0432c11a2", "tenantId": "mz", "name": "Malaria-SMC Campaign-Fixed Post-07 Jan 25j", "campaignId": "ef3f044f-047f-4eb5-adb1-5dbc92507461", "status": "DRAFT","additionalDetails": { "key": "6", "assumptionsForm": { "selectedRegistrationDistributionMode": { "code": "TOGETHER", "value": "Together" } }, "campaignType": "MR-DN", "DistributionProcess": "FIXED_POST", "RegistrationProcess": "FIXED_POST", "resourceDistributionStrategyCode": "FIXED_POST", "isRegistrationAndDistributionHappeningTogetherOrSeparately": "TOGETHER" }, "workflow": null } ]

project-factory/v1/project-type/update

POST

{ "id": "ef3f044f-047f-4eb5-adb1-5dbc92507461", "tenantId": "mz", "status": "drafted", "action": "draft", "campaignNumber": "CMP-2025-01-07-007018", "isActive": true, "parentId": null, "campaignName": "Malaria-SMC Campaign-Fixed Post-07 Jan 25k", "projectType": "MR-DN", "hierarchyType": "MICROPLAN", }

PreviousOpen Microplans: System AdminNextSpecification

Last updated 4 months ago

Was this helpful?