Expiration interval settings

The image below shows the expiration interval settings shows the Expiration interval settings section of the Registration settings page. This section relates to the number of days Civic Platform saves inactive registrant information before purging from the system. If the Account verification setting is enabled, a registration account remains inactive until the registrant activates their account by selecting the hyperlink associated with their account verification email they received after registration. Refer to Notification emails. The expiration interval setting defines how many days allocated to the registrant to select their hyperlink before their registrant information expires and is purged.

This feature functions by defining an EMSE script that purges the inactive accounts and runs as a regularly scheduled batch job. The script references the number of days in this setting. See an example script following the instructions below. For more information about EMSE scripts and batch jobs, contact Accela Customer Support for assistance. Some important details are in the “Event Manager and Script Engine” section and the “Writing Scripts” section in the Accela Civic Platform Scripting Guide.

This setting relates to the standard choice value PURGED_EXPIRED_ACCOUNT_INTERVAL in the standard choice ACA_CONFIGS. For instructions on configuring the standard choice, refer to the Accela Configuration Reference.

To configure the expiration interval

  1. Navigate to General settings > Registration settings.

    Citizen Access Setup displays the Expiration interval settings. See Expiration interval settings.

  2. Select the check box if you want to purge expired accounts.

  3. Define the expiration interval in number of days in the Days field.

  4. Write the EMSE script that purges the inactive accounts meeting that meet expiration criteria.

    For example:

    aa.print("=====================purgExpiredInactiveAccount begin=============================");

    var result = aa.publicUser.purgExpiredInactiveAccount();

    if (result.getSuccess())

    {

    aa.print("run purgExpiredInactiveAccount method successfully!");

    }

    else

    {

    aa.print("ERROR: run purgExpiredInactiveAccount method failed" + result.getErrorMessage());

    }

    aa.print("=====================purgExpiredInactiveAccount end=============================")

  5. Create a batch job to define the frequency Civic Platform runs the script. Refer to the Batch Job section of the Accela Civic Platform Administrator Guide.

  6. Customize the Account verification expired page in the Login folder of the Pages area in General settings.