Set Entity Cache
Category: Variable Manipulation
Description: This extension module allows storing entities from a session for a defined period, so they can be used in future interactions by the same client through the same channel.
Functionality: Entities designated for storage will be kept for a defined period in hours as specified in the module. Additionally, it includes an entity that allows verification of whether they were stored successfully. The entities can only be retrieved using the Get Entity Cache action, provided the client interacts through the same channel and before the defined time in the module has elapsed.
Implementation
Name: String input field that identifies the extension module in the flow.
List of entities to be stored: EntityList input field that allows selecting the entities to be stored.
Time of viewing of the entities in memory (Expressed in hours): Integer input field that defines how many hours the entities will be available. It is referenced from the moment they were stored.
Boolean entity with execution response: Input field that allows you to select a Boolean-type entity where the result of the entity storage will be saved. Its values can be True if the entities were stored correctly, or False if it was not possible to save the entities.
The intent to execute on error. The action flow will be interrupted and the description of the error will be passed to the selected intent with the name: 'SetEntityCache_Error'. This allows selecting the intention that will be used to handle the errors for this extinction module. The error details will be available in the entity called 'SetEntityCache_Error'.
Implementation Example
Field | Value |
---|---|
Name | SetEntityCache_Action |
List of entities to be stored | NameEnt, RutEnt |
Time of viewing of the entities in memory (Expressed in hours) | 3 |
Boolean entity with execution response | IfSetEnt |
he intent to execute on error. The action flow will be interrupted and the description of the error will be passed to the selected intent with the name: 'SetEntityCache_Error' | ErrorHandler_Intent |