Static instances are used to create predefined, named Instance of Entity with predefined Attribute values |
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.
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:
The static instance named ‘MarkOliverEverett’ could look like this:
Select the Home tab
Below the static instance MarkOliverEverett is connected to the static instance SingerSongwriter of entity Job.
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 |
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. |