During the third stage of applying evidence changes, the evidence controller activates in edit evidence and calculates the attribution periods for the newly activated evidence. To do this:
- The evidence controller changes the status of the new and updated evidence records from in edit to active and populates the evidence activation date with the current date on the system. It also searches for existing active evidence records with the same correction set ID as the newly active evidence records. If found, the evidence controller changes the status of the existing active evidence records to superseded.
- To create attribution periods for the newly active evidence, the evidence controller initiates the calculate attribution period process by calling out to a hook. This hook retrieves the list of case IDs which will require an attribution period for the active evidence. If the evidence is maintained for a stand alone product delivery, only one case ID is returned. If evidence is maintained at the integrated case level, each product delivery case that shares the evidence must have its own attribution period, and thus the case IDs for each of these product deliveries are returned.
- The evidence controller creates a new attribution period for each of the case IDs.
- The evidence controller searches for existing active evidence records which have the same succession ID as the newly activated evidence records. If found, the evidence controller re-attributes all evidence records in the succession.
- The evidence controller continues applying evidence changes to in edit evidence by calling out to another hook. This hook enacts any additional steps required to activate the in edit evidence.
- The evidence controller adds a new entry to the evidence change history table for each evidence record which has been activated.