ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Configuration

Process configuration

Parameter

Description

Value

PERSON_REQUEST_AUTOTERMINATION_SCHEDULE

(Cron Format) How often to perform termination

`* * * * *`

PERSON_REQUEST_EXPIRATION

(Days, integer > 0) Person request lifetime

prm.global_parameters.person_request_expiration

PEROSN_REQUEST_AUTOTCLEANING_SCHEDULE

(Cron Format) How often to perform termination

`* * * * *`

PERSON_REQUEST_DATA_CLEANING

(Days, integer > 0) Person request data lifetime

prm.global_parameters.person_request_autocleaning


Expiration person request

Search candidates

  1. If person_request.inserted_at < ( now() - PERSON_REQUEST_EXPIRATION) and status = 'NEW' or 'APPROVED`

Update person request

  1. Delete personal data from person requests: data, authentication_method_current,printout_form, documents, tax_id, first_name, last_name, birth_date, person_documents.

  2. Update status for all records to EXPIRED:

  • status = 'EXPIRED'

  • updated_at = now()

  • updated_by = SYSTEM_USER

Autocleaning person request

If person_request.inserted_at < ( now() - PERSON_REQUEST_DATA_CLEANING) and data is not NULL:

  1. Delete personal data from person requests: data, authentication_method_current, printout_form, documents, tax_id, first_name, last_name, birth_date, person_documents.

  2. update declaration_requests

  • updated_by = SYSTEM_USER

  • updated_at = timestamp

  • No labels