The routine checks to see if the table needs to be updated by doing
the following:
- Checks to see if the member is currently active. If so, the routine
loops through the table. If the member is already in the table, the
routine updates the member token. If the member is not already in
the table, the routine adds the member. This covers the case where
a member might have become active, but the GEPLTYPE=GEMSTATE event
was skipped.
- If the member is not currently active, the routine checks to see
if it is being called for a member state change.
- If this is not a member state change, the routine takes no action.
- If this is a member state change, the routine checks the previous
member state to see if the member was active. (This covers another
case where a GEPLTYPE=GEMSTATE event might have been skipped.) If
the member was active at one time, the routine checks to see if the
member is in the table, and adds the member or updates the member
as appropriate. Otherwise, the routine takes no action.
- If the member is currently active, the routine checks to see if
the member is in the table, and adds the member or updates the member
as appropriate.