Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
Actors
- User
- Database
- OpenRegistry
Pre-Conditions
- PRE1: User is authenticated and authorized to perform move sor records.
- PRE2: Identified PRC person to move sor records from (most likely via Search for Person Use Case)
- PRE3: Identified PRC person to receive SoR Records (either via Search for Person Use Case or will indicate that this is a new person)
- PRE4: Defined list of calculation rules to be executed.
Flow
- User provides the following information to the OpenRegistry System:
- Required:
- From Person.
- The sor_person_id for each sor record to move.
- Optional:
- To Person for the case where the person to receive the sor_records is already in the registry.
- If the person to receive the the sor records is not already in the registry then OpenRegistry will:
- add a new prc_person record.
- generate identifiers normally generated on an add of a person to the registry using data from the sor record.
- establish prc_person data using data from the sor record.
- For each sor record being moved:
- Check if there exists a prs_person record for the receiving person with a matching sor source:
- if found give error message. System of record is responsible to fix own data errors.
- if not found:
- associate moving prs_person record with the prc_person_id of the receiving person.
- For each prs_role record associated with the moving prs_person record, find the prc_role record pointed to by the prs_role record and point the prc_role record to the prc_person record of the person receiving the sor records.
Post Conditions
- From person and to Person are recalculated.
- Downstream systems are notified of change.
Exceptions
- EX1: If any rule calculation fails, the flow should fail.