handlers.due_date_tagger
Checks if a date is about to expire (e.g. a validity field). If the date is closer than n days, a tag is assigned, so that the fact sheet can be automatically included in a survey, or other measures can be taken, like breaking the quality seal.
Configuration:
field: The date field
days: Number of days
tag_group: The tag group of the tag to be assigned
tag_name: The tag to be assigned
config_template =
{'field': 'security_assessment_validity', 'days': 30, 'tag_group': 'Security', 'tag_name': 'Assessment validity will expire soon'}
def
handle(self, event, fs, **kwargs):
Called automatically whenever a FactSheetUpdated event comes in via webhook.
Inherited Members
- handlers.eventhandler.EventHandler
- EventHandler
- supports_initial_sync
- get_trigger
- get_event_types
- get_fs_types
- get
- all
- lx_client
- data_requirements
- initial_sync_event
- update_with_uniqueness_check
- facet_matches
- is_tag_key
- SUBSCRIPTION_TYPES
- parse_subscription_key
- get_mapped_subscriptions
- get_notification_users
- get_send_email_for_users
- get_email_callback
- get_due_date