You are viewing the documentation for Blueriq 13. Documentation for other versions is available in our documentation directory.
What is it?
An Instance is an actual instantiation of an entity and its associated attributes and/or relations. There are two types: static and dynamic. A static instance is specified in Blueriq Studio. A dynamic instance is created at run-time.
What does it do?
Where an Entity plus Attribute and/or Relation represents the definition of something, an instance represents the actual object.
Suppose the entity ‘Person’ is created with the following attributes:
- Person.DateOfBirth
- Person.Age
- Person.Lastname
- Person.Firstname
The static instance named ‘MarkOliverEverett’ could look like this:
How to – create a static instance
Select the Home tab
- From the Domain group select the Static instance icon
- Choose the corresponding Entity
- Fill in the required fields
- Edit the values for the attribute(s) and or relation(s)
- Click Save or Save & close
Below the static instance MarkOliverEverett is connected to the static instance SingerSongwriter of entity Job.
Properties
Property | Description |
---|---|
Entity | Choose the entity. |
Name | Identifies the object. Maximum 50 characters (only letters, numbers and underscores (_)) are allowed. |
Functional name | Optional, can be used in documentation |
Description | Is optional, but recommended |
Attribute Name | This column sums up the attributes belonging to the chosen entity |
Attribute Value | This column sums up the attribute type. The value can be edited here and made static. |
Relation Name | This column sums up the relations belonging to the chosen entity |
Relation Value | This column sums up the static instances belonging to the related entity |
How to – refer to a specific static instance in an expression
- EntityName[StaticInstanceName].
- Person[Pete].Name
Although you are allowed to change the values of attributes and relations of a static instance at runtime, it is not allowed to delete a static instance at runtime. This results in an error.