/
Link SoR Records
Link SoR Records
Actors
- User
- Database
- OpenRegistry
Pre-Conditions
- PRE1: User is authenticated and authorized to perform Link.
- PRE2: Identified PRC person to link and keep generated identifiers (most likely via Search for Person Use Case)
- PRE3: Identified PRC person to link and drop generated identifiers (most likely via Search for Person Use Case)
- PRE4: Defined list of calculation rules to be executed.
Flow
- User provides the following information to the OpenRegistry System:
- Required:
- Person id of person to link whose generated identifiers will be kept (primary person)
- Person id of person to link whose generated identifiers will NOT be kept (absorbed person)
- Required:
- For each sor_person record associated with the person to be absorbed:
- Check if there exists an sor_person record for the primary person with a matching sor source:
- if found give error message. System of Record must correct their own data problems.
- if not found, associate sor_person record with the prc_person_id of the receiving person.
- For each sor_role record absorbed, find the prc_role record pointed to by the sor_role record and point the prc_role_record to the prc_person record of the primary person.
- Check if there exists an sor_person record for the primary person with a matching sor source:
- Delete the from person.
Post Conditions
- Resulting person is recalculated.
- Downstream systems are notified of change.