Skip to main content

FMD Modernisation - BBU High level design

BBU in Facility Portal

  1. BBU portal

High-Level Design (HLD) for Backend BBU Process

Technical Flow Diagram

Database Tables

Below are 3 tables used in BBU functionality

  1. bbu_template_info - This section will store template information.

This table stores reference information for all BBU templates, serving as a resource for validating file or template structures. The number of records in this table corresponds to the total number of BBU templates.

Attribute NameData TypeSample Values
bbu_template_typeVARCHAR(50) NOT NULLBLK_FACT_CREATEBLK_FACT_UPDATE
template_nameVARCHAR(50) NOT NULLName of the template
template_descriptionVARCHAR(500) NOT NULLDescription of the template and purpose of the template.
template_headerVARCHAR(5000) NOT NULLInclude all header information in the respective template. This will assist in validating the template structure.
  1. bbu_history - This section will store the complete history of all BBU IDs.

This table is used to track the status of each BBU job, including details such as the uploaded template, the number of records in the batch, the count of successful and failed records, and the overall status of the job.

Attribute NameData TypeSample Values
bbu_idBIGINTAuto generated
bbu_template_typeVARCHAR(50)Template type name, referenced from bbu_template_info.bbu_template_type
uploaded_byVARCHAR(50)User details who uploaded the template
statusVARCHAR(20)BBU Job statusUPLOADEDIN-PROGRESSCOMPLETED IN-COMPLETED FAILED
total_recordsBIGINTThe quantity of records uploaded in a specific BBU job.
failed_recordsBIGINTThe quantity of records that failed to process in a specific BBU job.
job_start_timetimestamptzWhen did the BBU job commence?
job_end_timetimestamptzWhat time was the BBU job completed?
snow_ticket_idVARCHAR(50)SNOW TICKET ID against with the BBU template is uploaded.
status_detailsVARCHAR(200)Provide details about the job status, including additional information in case of failure.
  1. bbu_error_history - This section will maintain the error history.

This table is utilized to monitor the error specifics of a record that failed due to validations. It documents all failed records associated with a BBU job, including comprehensive error descriptions.

Attribute NameData TypeSample Values
bbu_error_history_idBIGINTAuto generated sequence number.
bbu_idBIGINTbbu id under which the record is loaded. This is reference from bbu_history.bbu_id
bbu_template_typeVARCHAR(50)Template type name, referenced from bbu_template_info.bbu_template_type
bbu_record_sequence_numberBIGINTThis is sequence number from the template
bbu_recordJSONBThis is complete record in JSON format
error_fieldVARCHAR(50)Field on which the validation failed
error_detailsJSONBThe actual error/validation message
Was this page helpful?