This page was last edited on September 7, 2018, at 12:58.
Comments or questions about this documentation? Contact us for support!
Context Services includes granular expiration capabilities for conversations. You can configure expiration dates by type of conversation identified in the service_type attribute of a service instance, instead of instancing purge scenarios.
The conversation data remains valid from the date where you start or update the associated service, till its expiration date. At expiration, the conversation data (all its service, states, and tasks) is removed from the database.
You can configure the expiration date in the Context Service application or in the Business Attributes mapped with services (see below). The expiration attribute must match the following formatting:
expiration = <integer><letter>
where:
For example, setting expiration=2w means that data inserted or updated using the Context Services API will last 2 weeks.
In Genesys Administrator, open your application and in the Options tab, edit the cview/expiration attribute.
Set its property to the appropriate value.
Click Save to apply the change to new conversations.
To overwrite the default expiration for a given service type, you must first set up Business Attribute mapping for Service.type resources. See there for details. Then, you can edit the Business Attribute mapped with your service type and add the setting/expiration option to its configuration.
In our example, Service types are mapped with ContextManagementService Business Attribute values:
business-attributes/Service.type=ContextManagementService
To set a specific expiration time of your Business Attribute value, edit its configuration and add settings/expiration=<integer><letter> to the Options tab.