Expiration Policies allow for automatic transition of CO Person (Role) attributes in support of offboarding procedures, such as grace periods and expiration.

Each Expiration Policy consists of two components: Conditions and Actions. When the Conditions for an Expiration Policy all match, all Actions for that Expiration Policy are taken. Multiple Expiration Policies can be defined.

Conditions

The following conditions are currently supported:

Only one of Days Before Expiration and Days After Expiration may be set in a given Expiration Policy.

In order to have an expiration policy apply on the exact day of expiration, set Days After Expiration to 0. (Do not use Days Before Expiration for this.)

Note that 0 and blank are treated differently. A blank Days value will be treated as unset, and not used for matching records.

(warning) Versions prior to Registry v2.0.0 may not have handled these settings as described here.

Actions

The following actions are supported:

(warning) When a CO Person Role status is updated, the overall CO Person status will be recalculated.

Automatic Processing

In order for Expiration Policies to be processed automatically for a CO, the following conditions must be met:

  1. The Registry cron job has been installed.
    1. As of Registry v4.0.0, expirations are processed via theĀ Core Job Plugin Expire job.
  2. Expiration is not disabled. To disable expiration, edit the CO Settings (Collaborations >> CO >> CO Settings) and check Disable Expiration.
  3. Only Expiration Policies with status Active will be executed.

Common Expiration Patterns

Grace Periods

The recommended way to implement Grace Periods is with two Expiration Policies.

The first Expiration Policy would have Conditions appropriate for the start of the Grace Period. This would generally involve Days Before Expiration being blank and Status being Active, with optional filters for COU and Affiliation. The key Action would be to set Status to Grace Period.

The second Expiration Policy would have Status of Grace Period as the key Condition (thus effectively chaining to the first Expiration Policy), along with Days After Expiration set to the number of days in the Grace Period. The Actions would then be set appropriately, such as setting Status to Expired.