Changes between Initial Version and Version 1 of ALL__record_lifecyle


Ignore:
Timestamp:
11/19/14 17:15:09 (10 years ago)
Author:
lttoth@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ALL__record_lifecyle

    v1 v1  
     1= Enterprise Directory Record Lifecycle (LDAP_REG.STATE) = 
     2    Original author:  Beth Mercer - 20090108 
     3 
     4This document introduces the concept of record lifecycle as implemented in the Enterprise  
     5Directory (EDIR) through its batch processes.  Records receive an initial state when first  
     6created after which state may be changed.  Possible states are recorded in LDAP_REG_STATES  
     7and vary by record type (see the query report_state_counts) as well as by stage of  
     8processing.  As of 20080107, possible states are these: 
     9 
     10||= STATE =||= DESCRIPTION =|| 
     11|| A ||        PEOPLE ENTITIES - ACTIVE RECORDS || 
     12|| B ||    PEOPLE ENTITIES - BAD RECORDS || 
     13|| b ||     PEOPLE ENTITIES - FLAGGED FOR BAD PROCESSING || 
     14|| D ||     DEPARTMENT ENTITIES - ACTIVE RECORDS || 
     15|| E ||    PEOPLE ENTITIES - EXPECTED RECORDS || 
     16|| G ||     GROUP ENTITIES - ACTIVE RECORDS || 
     17|| I  ||   PEOPLE ENTITIES - INACTIVE RECORDS || 
     18|| i  ||    PEOPLE ENTITIES - FLAGGED FOR INACTIVE PROCESSING || 
     19|| N ||    PEOPLE ENTITIES - FLAGGED FOR DIRECTORY RECORD CREATION || 
     20|| O ||     ROUTING ENTITIES - ACTIVE RECORDS || 
     21|| P ||    ALL ENTITIES - PURGED RECORDS || 
     22|| p ||   PEOPLE ENTITIES - FLAGGED FOR PURGE PROCESSING || 
     23|| R ||    RESOURCE ENTITIES - ACTIVE RECORDS || 
     24|| S ||     PEOPLE ENTITIES - SPONSORED RECORDS || 
     25|| X ||     FLAGGED FOR EXCLUSION FROM BATCH PROCESSING || 
     26 
     27''NOTE: ''With one exception, transitional states are lowercase.  The state N, though  
     28uppercase, is a transitional state establish early in the evolution of lifecyle processing. 
     29If someone had the time to change the dependent code, changing N to n would be desirable. 
     30 
     31People records have the most complex lifecycle, as reflected by number of possible states,  
     32because peoples' relationships with the University are the most changeable.  Automated batch  
     33processes have evolved to address that complexity and rely on the various possible states  
     34for people records.  More about them later is in this document. 
     35 
     36DEPARTMENT, GROUP, RESOURCE and ROUTING RECORDS 
     37=============================================== 
     38When department, group, resource and routing records are first created, they are given a state  
     39reflecting the type of record.  The only other supported (by batch processing) state is P for  
     40purged.   
     41 
     42STATE DESCRIPTION 
     43----- ------------------------------------------------------------ 
     44D     DEPARTMENT ENTITIES - ACTIVE RECORDS 
     45G     GROUP ENTITIES - ACTIVE RECORDS 
     46R     RESOURCE ENTITIES - ACTIVE RECORDS 
     47O     ROUTING ENTITIES - ACTIVE RECORDS 
     48P     ALL ENTITIES - PURGED RECORDS 
     49 
     50So, a group record is given a state of G when created.  That state is changed to P when purged.   
     51The initial state of G is reestablished if a previously purged record is restored.  The same holds  
     52true for department, resource and routing records. 
     53 
     54D | G | R | O   when department, group, resource and routing records created 
     55P               when purged 
     56D | G | R | O   if purged record subsequently restored 
     57 
     58Department records are created via two processes: a monthly batch update process driven by  
     59changes to OIR's BOR table (see UPDT_unit_changes) and the EDIR Seed Department form.  Department  
     60records are deleted and restored by the same processes with certain restrictions.  The EDIR Seed  
     61Department form will only delete and restore "faux" records - those created via the form.  The Seed  
     62Department form will not delete those department records originating from the BOR table. 
     63 
     64Group, resource and routing records are all created, deleted and restored via the corresponding  
     65AUTHSERV or EDIR forms (Seed Group, Seed Resource and Seed Routing) 
     66 
     67PEOPLE RECORDS 
     68============== 
     69For people records, the initial state reflects a subcategory of people records (A for records matched  
     70to Banner with active employee or student affiliation, E for records matched to Banner for which  
     71active employee or student affiliation is expected but does not yet exist, S for records with no  
     72match in Banner [generally thought of as "guest accounts"]). 
     73 
     74STATE DESCRIPTION 
     75----- ------------------------------------------------------------ 
     76A     PEOPLE ENTITIES - ACTIVE RECORDS 
     77E     PEOPLE ENTITIES - EXPECTED RECORDS 
     78S     PEOPLE ENTITIES - SPONSORED RECORDS 
     79 
     80Aside from signifying a subcatetory of people records, state on people records is also used for  
     81batch process control.   
     82 
     83A state records are subject to record aging and will be flagged for inactivation by the EDIR  
     84Banner Extract process when the record no longer meets the active affiliation test.  Inactivated  
     85records are present but hidden in EDIR.  The EDIR Banner extract process is the primary source  
     86of people records with an initial state of A.  However, the AUTHSERV Sponsor Account form can  
     87also restore previously purged records.  Those restored records have an initial state of A and  
     88will be inactivated due to lack of active affiliation unless subsequently sponsored. 
     89 
     90E state records are exempt from inactivation processing.  Their state is changed from E to A by  
     91the EDIR Banner Extract process once the record meets the normal extract criteria.  A now obsoleted  
     92AUTHSERV form was the only source of people records with an initial state of E.  The current AUTHSERV  
     93Sponsor Account form is now used to sponsor regular accounts as well as guest accounts making the  
     94E state obsolete.   
     95 
     96NOTE: As of 1/8/2009, there were still 10 EDIR records with a state of E. 
     97 
     98S state records are also exempt from inactivation processing.  State changes from S to A only when  
     99sponsorship is revoked.  The AUTHSERV Sponsor Account form is the only source of people records  
     100with an initial state of S.  
     101 
     102There are additional LDAP_REG values that reflect alternate and transitional states for people  
     103records. 
     104 
     105STATE DESCRIPTION 
     106----- ------------------------------------------------------------ 
     107I     PEOPLE ENTITIES - INACTIVE RECORDS 
     108B     PEOPLE ENTITIES - BAD RECORDS 
     109P     ALL ENTITIES - PURGED RECORDS 
     110N     PEOPLE ENTITIES - FLAGGED FOR DIRECTORY RECORD CREATION 
     111i     PEOPLE ENTITIES - FLAGGED FOR INACTIVE PROCESSING 
     112b     PEOPLE ENTITIES - FLAGGED FOR BAD PROCESSING 
     113p     PEOPLE ENTITIES - FLAGGED FOR PURGE PROCESSING 
     114 
     115One step in the EDIR Banner Extract process flags people records with the transitional states of N  
     116(new), i (inactive) or b (bad).  A final step generates directory LDIF based on the transitional  
     117states and then changes the state to A (active), I (inactive) or B (bad) accordingly.   
     118 
     119NOTE: The fact that the N state is upper case rather than lowercase is an unfortunate by-product of  
     120how lifecycle processing developed for EDIR. 
     121 
     122The process of purging the directory of inactive and bad people records (see UPDT_process_purge)  
     123has not been run since 2007.  When the purge is performed, LDAP_REG is changed to the transitional  
     124state of p (purge), directory LDIF is generated and then state is changed to P (purged). 
     125 
     126There is one special people record state not previously mentioned - X (exclude). 
     127 
     128STATE DESCRIPTION 
     129----- ------------------------------------------------------------ 
     130X     FLAGGED FOR EXCLUSION FROM BATCH PROCESSING 
     131 
     132The state X, which is a kludge that addressed a security/privacy issue that cropped up for one  
     133user's record,  must be established and removed manually.  Records with a state of X are excluded  
     134from processing by the EDIR Banner Extract.  If state is X, the EDIR Banner Extract process neither  
     135updates the registry with Banner data nor changes the record state. 
     136 
     137NOTE: As of 1/8/2009, there was only 1 EDIR records with a state of X. 
     138 
     139WARNING: Place no reliance on state X without first investigating how it is currently used. 
     140 
     141SAMPLE PEOPLE RECORD STATE FLOWS: 
     142 
     143<<regular people records>> 
     144N       when EDIR Banner Extract process identifies a qualifying entity which no directory record exists 
     145          NOTE: this could be a previously purged record 
     146A       once the EDIR Banner Extract process (or AUTHSERV Sponsor Account form) generates the directory record 
     147i       when the EDIR Banner Extract process flags the record for inactivation 
     148I       after the EDIR Banner Extract process inactivates the record 
     149p       when the record is flagged for purging 
     150P       after the record has been purged 
     151A       when the AUTHSERV Sponsor Account form restores the purged record 
     152S       when record is sponsored by AUTHSERV Sponsor Account form 
     153A       when sponsorship is revoked 
     154i       when the EDIR Banner Extract process flags the record for inactivation 
     155I       after the EDIR Banner Extract process inactivates the record 
     156p       when the record is flagged for purging 
     157P       after the record has been purged 
     158 
     159N       when EDIR Banner Extract process identifies a qualifying entity which no directory record exists 
     160A       once the EDIR Banner Extract process (or AUTHSERV Sponsor Account form) generates the directory record 
     161... 
     162b       when EDIR Banner Extract process flags record as "bad" (as result of Banner multiple PIDM cleanup) 
     163B       after the EDIR Banner Extract process inactivates the "bad" record 
     164p       when the record is flagged for purging 
     165P       after the record has been purged 
     166 
     167<<guest records>> 
     168S       when record is sponsored by AUTHSERV Sponsor Account form 
     169A       when sponsorship is revoked 
     170i       when the EDIR Banner Extract process flags the record for inactivation 
     171I       after the EDIR Banner Extract process inactivates the record 
     172p       when the record is flagged for purging 
     173P       after the record has been purged 
     174A       when the AUTHSERV Sponsor Account form restores the purged record 
     175S       when record is sponsored by AUTHSERV Sponsor Account form 
     176A       when sponsorship is revoked 
     177i       when the EDIR Banner Extract process flags the record for inactivation 
     178I       after the EDIR Banner Extract process inactivates the record 
     179p       when the record is flagged for purging 
     180P       after the record has been purged 
     181 
     182