9. Delete MARC Authority

Description

Delete MARC Authority + delete Inventory Authority

Flow

  1. JobDefinition (UUID, profile - defines job type: delete) for import created in mod-srm
  2. MARC file + JobDefinition ID are uploaded from WEB client to mod-data-import
  3. MARC records are packed into batches and put to Kafka queue DI_RAW_RECORDS_CHUNK_READ
  4. mod-srm reads batches from the queue, validates them and publishes DI_MARC_FOR_DELETE_RECEIVED event - since JobProfile contains an action for MARC_AUTHORITY delete, original records are not saved in mod-srs. 
  5. mod-srs reads message from DI_MARC_FOR_DELETE_RECEIVED. Tries to find entity according to match criteria
  6. If found: exports result to DI_SRS_MARC_AUTHORITY_RECORD_MATCHED
    1. mod-srs receives match result and delete the MARC_AUTHRORITY record. And publishes result to DI_SRS_MARC_AUTHORITY_RECORD_DELETED
    2. mod-inventory reads message from DI_SRS_MARC_AUTHORITY_RECORD_DELETED, deletes the corresponding Authority, and export to DI_COMPLETE
  7. If not found:  DI_SRS_MARC_AUTHORITY_RECORD_NOT_MATCHED event is published

Diagram

Source