Extend the Data Model
When a specific entity doesn't include all the attributes required by a form or form driven flow, you can extend that entity with the corresponding additional attributes. Thus, instead of creating a sophisticated entity from scratch, you can just use the Data Model Extension capability to include virtual attributes from multiple entities into the flow's data model.
Hence this is what Data Model Extension is all about: It allows you to bring in attributes from other entities or external sources in order to make them available in your current Form Driven Flows.
There are four types of extensions that you can use to extend the data model of an entity:
- Custom Data Extensions - Use them to create ad-hoc attributes that are not stored in the database or associated with any entity. They can, however, be populated based on the underlying entity attributes.
- Related Data Extensions - Use them to display attributes that are not native to the entity on which you are currently building the flow. The virtual attributes can only be fetched from entities that are related to the current entity (you will have to establish the Entity Relationships beforehand).
- One to One Data Extensions - Use them to simultaneously update all attributes referencing your underlying entity. For example, you network or link your entity with multiple other entities and create multiple digital journeys serving different purposes and need to make sure that the chosen attributes will be updated at once across the whole model.
- Transient Data Entity - Use them to expose attributes that temporarily store and display data that has been loaded from or is going to be saved to an external data source (e.g. a legacy system). The transient attributes values are preserved only while the flow is open. For more information, see Transient Data Entities.
If you need to extend your current entity with both Custom and Related attributes, you will have to add two distinct entity extensions, one of type Custom and the other one of type Related. Once added to the data model, the virtual attributes become available in the UI Designer - they will appear with a (VA) suffix added after their name.
Data extensions have specific particularities when they are related to real attributes of type Lookup and OptionSet:
-
Lookup attributes: If you render a data extension which is related to a Lookup attribute, the data extension will be a Lookup attribute as well. You will be able to choose from the same pool of records as the real attribute, or edit the selected record.
-
OptionSet attributes: If you render a data extension which is related to an OptionSet attribute, the data extension will be an OptionSet attribute as well. If the real attribute has a default selection, the related data extension will have it as well. If a new record is added to the option set, it becomes the default selection of the data extension. You can add option items to the data extension similar to the real attribute.
Custom Data Extensions
Custom Data Extensions give you full control over attributes’ values without altering the database. Use them to calculate and display aggregated attribute values in the user interface, without storing them in the database. You can render the following types of attributes: Bool, Date, Text, Lookup, Numeric, Text, Area, DateTime, OptionSet, and WholeNumber.
For example, Age could be a Custom Data Extension since, based on the data already stored in the database (e.g. a Birth Date attribute) and the current date, you just calculate and display the age of a customer, when needed, in a certain flow, instead of storing it in the database.
-
To add a Custom Entity Extension,in FintechOS Studio, go to the main menu on the left side and click to open it. On the drop-down menu, click Evolutive Data Core and then click Data Model Explorer in order to open the Business Entities List.
-
Use Search to find your current entity (the entity that you want to extend). Double click on the Entity title to open the Edit Business Entity page.
-
Scroll down to Extended Model. Click to expand the Extended Model section. You can now start adding data extensions to your current entity.
-
Click Insert to open the Add Business Entity Extension window. Use the Name field to provide a unique name for the extension. Use the Extension Type drop-down to select the type of data extension.
-
Select Custom.
-
At the top-right corner of the page, click the Save and reload button in order to unlock the Virtual Attributes menu.
-
Click the Virtual Attributes in order to expand the menu. You can now start creating your own custom virtual attributes, which will be related to your current entity, trough that specific data extension.
-
Click the Insert button to open the Add Virtual Attribute window.
-
Provide the mandatory fields:
Property Description Name The name of the data extension that will be used by the system. Display Name The name of the data extension that will be displayed in the user interface. Attribute Type Select the type of attribute. For more information on the types of attributes available in Innovation Studio, see Attributes. Updatable For the data extension value to be updated automatically, select the Updatable checkbox. Required level Select one from the list: - none
- recommended
- required
Tooltip If tooltips are set to be shown on forms and digital journeys and you want to have a tooltip explaining this data extension in the user interface, provide the desired text in the Tooltip text area field. Insert the tip to be displayed when hovering over the field. -
At the top-right corner of the page, click the Save and close icon, or Save and new if you wish to add a new virtual attribute.
For details on how to render custom data extensions in the user interface, see Rendering Custom Data Extensions.
Related Data Extensions
Related Data Extensions will behave like native attributes. These extensions will allow you to edit the value of the data (a virtual attribute) similar to editing a native attribute (an attribute belonging to your current entity). To set up a Related Data Extension relationship between the current entity and another entity from the database, you will use a Lookup attribute (see below).
For example, on entity Contract, insert a Lookup attribute to the entity Client, in order to extend the data model of the Contract entity with attributes from the Client entity. The result is that, on the same digital journey, when updating a contract, you will also be able to edit or modify client data.
-
To add a Related Entity Extension, in FintechOS Studio, go to the main menu on the left side and click to open it. On the drop-down menu, click Evolutive Data Core and then click Data Model Explorer in order to open the Business Entities List.
-
Use Search to find your current entity (the entity that you want to extend). Double click on Entity title to open Edit Business Entity page.
-
Scroll down to Extended Model. Click to expand the Extended Model section. You can now start adding data extensions to your current entity.
-
Click Insert to open the Add Business Entity Extension window. Use the Name field to provide a unique name for the extension. Use the Extension Type drop-down to select the type of data extension.
-
Select Related. After selection, the Related Attributes field becomes visible. Click the field to open the drop-down list of the attribute types that you can use. From the list, select the Relation Attribute that will lookup to the entity from which you want to bring in data.
- At the top-right corner of the page, click the Save and reload button in order to unlock the Virtual Attributes menu. Click Virtual Attributes in order to expand the menu. You can now start adding virtual attributes to your current entity.
- Click the Insert button to open the Add Virtual Attribute window.
- Select the desired Related Attribute. The system will automatically fill in some of the fields with information from the related attribute. Do not attempt to change it.
- Select the Updatable checkbox in order to update the related entity attribute value when the current entity virtual attribute field is updated. If not selected, the virtual attribute will be read-only. If tooltips are set to be shown on forms and digital journeys and you want to have a tooltip explaining this data extension in the user interface, provide the desired text in the Tooltip text area field.
- Optional: select the Is owner for relation checkbox so that when a data entry is added, an instance of it will be created to fulfill this logic on the entity connected through the Relation Attribute. If this is not checked, the virtual attributes will be read-only.
-
At the top-right corner of the page, click the Save and close icon, (or Save and new to add a new virtual attribute).
The virtual attributes can only be fetched from entities that are related to the current entity. If there is no attribute type in the drop-down list, you first need to establish a relationship between entities, in order to be able to display an attribute that you particularly need.
One to One Data Extensions
One to One Data Extensions enable modeling an underlying or base entity and all specialized entity extensions referencing it. You can extend an entity by creating a relationship between it and multiple other entities, while handling multiple digital journeys serving different purposes. The underlying entity will have multiple entries with different views based on the views used by the digital journeys defined on the entity.
For example, your base entity (e.g., Account) can be extended with virtual attributes from Client Info and Suppliers entities in order for the Account entity to support or provide for two digital journeys: one for creating clients and one for creating suppliers.
Another example is: You define an entity extension of the current base entity (e.g., Account) to another entity (e.g., Financial Info) which has a Lookup to the current entity (the two entities are in a 1:1 relationship). For an instance of entity Account there is one instance of entity Financial Info which refers to entity Account.
-
To add an One to One Data Extension, in FintechOS Studio, go to the main menu on the left side and click to open it. In the drop-down menu, click Evolutive Data Core and then click Data Model Explorer in order to open the Business Entities List.
-
Use Search to find your current entity (the entity that you want to extend). Double click on the Entity title to open the Edit Business Entity page.
-
Scroll down to Extended Model. Click to expand the Extended Model section. You can now start adding data extensions to your current entity.
-
Click Insert to open the Add Business Entity Extension window. Use the Name field to provide a unique name for the extension. Use the Extension Type drop-down to select the type of data extension.
-
Select One to One. After selection, the One to One Relationship field becomes visible. Click the field to open the drop-down list of the referenced entities that you can use. In that list, select the Referenced Entity from which you want to bring in data. For example, for the base Account entity, select the relationship between Account and Client Info.
-
At the top-right corner of the page, click the Save and reload button in order to unlock the Virtual Attributes menu. Click on Virtual Attributes in order to expand the menu. You can now start adding virtual attributes to your current entity.
-
Click the Insert button to open the Add Virtual Attribute window.
-
Select the desired Related Attribute. The system will automatically fill in some of the fields with information from the related attribute. Do not attempt to change it.
- Select the Updatable checkbox to update the related entity attribute value when the current entity virtual attribute field is updated. If not selected, the virtual attribute will be read-only. If tooltips are set to be shown on forms and digital journeys and you want to have a tooltip explaining this data extension in the user interface, provide the desired text in the Tooltip text area field.
- Optional: select the Is owner for relation checkbox so that when a data entry is added, an instance of it will be created to fulfill this logic on the entity connected through the Relation Attribute. If this is not checked, the virtual attributes will be read-only.
-
At the top-right corner of the page, click the Save and close icon, (or Save and new to add a new virtual attribute).
Virtual attributes can only be fetched from entities that are related to the current entity. If there is no attribute type in the drop-down list, you first need to establish a relationship between entities, in order to be able to display an attribute that you particularly need.
Transient Data Extensions
Transient Data Entity Extensions allow you to fetch data from an external source and display it in a form driven flow or to save data displayed in a form driven flow to an external destination. Transient data entities use automation scripts for load/save that are triggered when such a flow is displayed/saved to facilitate data transfers from/to external sources. The transient attributes values are preserved only while the flow is open. For more information, see Transient Data Entities.