Skip to content
IaroslavVakatsiienko edited this page Jun 12, 2023 · 3 revisions

Backbase Stream Sagas

Legal Entity SAGA

This Service is part of the legal-entity-core module and it creates Legal Entities and their supporting objects from an aggregate model (Legal Entity) that contains all info required to ingest one Customer or multiple customers in a hierarchy.

  • For each Legal Entity object, it will either retrieve the existing Legal Entity or create a new one.

  • Next, it will either create or update the Administrator users which are used to create a Master Service agreement.

  • Next, After the users are created/retrieved and enriched with their internal Ids we can set up the Master Service

  • Next, it will create/update product groups (Arrangements) if they exist in the Legal Entity model

TODO: Include the diagram

Product Ingestion SAGA

This service is part of the stream-product module, it used implicitly in Legal Entity Saga and can be used independently, also it's responsible for ingesting customer products, arrangements, and set up user permissions.

Approvals Ingestion SAGA

This service is part of the approvals-core module, and it creates Policies and Approval Types and their supporting objects, also it's responsible for ingesting/assigning all approvals flow.

  • This is not idempotent implementation (due to lack of service-api. The request for improvements is created)
  • For each Approval object, it will create a new one of Policy and Approval Type.

Transaction Ingestion SAGA

TODO this service is not implemented yet

Limit Ingestion SAGA

TODO this service is not implemented yet

Contacts Ingestion SAGA

TODO this service is not implemented yet

Loans Ingestion SAGA

This saga is implemented in the loans-core module, creating loans in DBS's loan service. The task for the SAGA is created and triggered in Product Ingestion SAGA as the loan itself is a specific type of arrangement and the arrangement should be created before corresponding loan.